Trying to edit a column of a table in MariaDB using PHPmyAdmin v5.1.1 gives me trouble. It saves the column as binary and I need to edit the whole row in order to be able to edit it as text. Even doing so, when choosing Edit/Insert next to the appropriate field, I get this copied:
'POINT(0 0)',0
However this is not compatible with MariaDB 10. The only thing that works so far is using a raw query for updating the field like this:
UPDATE `locations` SET `point` = POINT(1, 2) WHERE `locations`.`id` = 169;
My question is, isn't there a way of updating the field through the UI of PHPMyAdmin instead of running manual queries?
Trying to be more specific. This is how the column looks like in PHPMyAdmin:
And this is how it looks like when editing the row:
Note that because its WKB, it cant be edited directly. However when adding to the point field this:
POINT(1, 1)
PHPMyAdmin changes it to:
'POINT(1, 1)'
And it doesnt work.
Also the comma is needed otherwise MariaDB throws an error:
#1416 - Cannot get geometry object from data you send to the GEOMETRY field
Well this looks like a bug in the PHPMyAdmin for the newer versions of MySQL and MariaDB. It is described in this very recent article here
Indeed a fix is already deployed and will be available in PHPMyAdmin 5.1.2