|
|
|
|
|
by orf
1322 days ago
|
|
Sorry, I’m not clear on why you need to parse the query? Imagine you want to INSERT (int, array[], int) into a table. Why can’t you just generate the following SQL? INSERT INTO foo VALUES (?, ARRAY[?,?,?], ?)
Where param 1-3 are indexes 0-2 in the array?This is basically what everything else does when handing arrays, or other composite types like coordinates. If the language or libraries are not suitable for doing this then the language or libraries are the problem, not the approach. |
|