Bind parameters not recognized with PostgreSQL array syntax #37750
-
DescriptionWhen bind parameters are used with PostgreSQL array syntax (i.e. inside square brackets), they are not recognized and are not substituted. DBeaver VersionCE 25.0.2 Operating SystemWindows 11 Pro 24H2 Database and driverPostgreSQL 13.16, JDBC driver 42.7.2 Steps to reproduce
Unlike
Both |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
As a walkaround - extra whitespace after the square bracket and before the colon character helps: So it is something with about the |
Beta Was this translation helpful? Give feedback.
-
@brankoradovanovic-mcom, thanks for the bug report. |
Beta Was this translation helpful? Give feedback.
-
Strangely enough, there is such a case: #5440 |
Beta Was this translation helpful? Give feedback.
-
The correct parsing is indeed even trickier than it appears. Adding whitespace is a reasonable workaround. |
Beta Was this translation helpful? Give feedback.
As a walkaround - extra whitespace after the square bracket and before the colon character helps:
select :p1, array[ :p2]
So it is something with about the
[:
sequence. Interesting. =)