Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1643

Joomla! 5.x Coding • Use JTable store with Geometry type

$
0
0
Hello,

I would like to make use of JTable::store to update a Geometry value in my database.
The Geometry value is given like "POINT(x,y)". If I make the query by myself it must make use of ST_GeomFromText, e.g.
UPDATE '#__com_tbl' SET 'location' = ST_GeomFromText("POINT(x,y)")
The JTable::store function calls however a quotation-function which alters the query - if I use store to:
UPDATE '#__com_tbl' SET 'location' = "ST_GeomFromText(POINT(x,y))"
which doesn't work due to the mysql-Instruction ST_GeomFromText which is now considered as text.

Are there any possibilities?

Statistics: Posted by JayJoom — Sun Jul 07, 2024 2:15 pm



Viewing all articles
Browse latest Browse all 1643

Trending Articles