Details
-
Bug
-
Status: Open
-
P3
-
Resolution: Unresolved
-
2.31.0
-
None
-
None
-
Important
Description
I need to insert geometry into my postgresql database. My pipeline stage is a follows;
// code placeholder | 'Write jdbc' >> WriteToJdbc( jdbc_url='jdbc:postgresql://localhost:5432/postgre', driver_class_name='org.postgresql.Driver', table_name='test', username='postgres', password='postgres', statement="""INSERT INTO test VALUES(?, ?, ?, ST_GeomFromText(?), ?, ?, ?, ?, ?, ?)"""
I expect this code to write data to database and cast my text into geometry type while inserting. But it does not work.