Bulk insert POINT
#1553
-
I have found #234 but I still cannot get mysql2 to BULK INSERT handle POINTs. Till now I have an sql like this: const sql = `INSERT INTO addresses (
eov,
settlement,
street_name,
created_at,
updated_at)
VALUES ?` And I can bulk insert rows like this: await promisePool.query(sql, [rows]); where every row is an array, like [{"x":165830,"y":6809491},"Ágasegyháza","Ady Endre","2022-04-04T16:26:27.606Z","2022-04-04T16:26:27.606Z"] Except that the eov field which is a new field with type POINT is not filled.
Tried with the |
Beta Was this translation helpful? Give feedback.
Answered by
sidorares
Apr 14, 2022
Replies: 1 comment 2 replies
-
this example should help: #1244 (comment) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pihentagy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this example should help: #1244 (comment)