-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading text array from postGRESQL #55
Comments
Wow, that's interesting! It was issued from: https://github.com/denizzzka/dpq2/blob/6d45b66d3504bce96d09f71a70878a64e7acb1e2/src/dpq2/result.d#L557 Please can you make SQL request in the form: select overview::text and get text representation of this cell directly from the server? So that I can understand what exactly dimensions format this |
@naturalmechanics as quck and dirty fix try to comment out this check: https://github.com/denizzzka/dpq2/blob/6d45b66d3504bce96d09f71a70878a64e7acb1e2/src/dpq2/result.d#L558 I think it is not needed at all - this field is, probably, only used internally by the server. |
It has something to do with PG slices, I think: https://www.postgresql.org/docs/current/arrays.html#ARRAYS-IO By default, the lower bound index value of an array's dimensions is set to one. To represent arrays with other lower bounds, the array subscript ranges can be specified explicitly before writing the array contents. This decoration consists of square brackets ([]) around each array dimension's lower and upper bounds, with a colon (:) delimiter character in between. The array dimension decoration is followed by an equal sign (=) |
I will do that on monday back in office. Sorry for the delay |
My postGRESql contains some data as a text array column.
Column name is overview.
If I try:
I get this error:
Please report if you came across this error! lbound==2.
Help please.
The text was updated successfully, but these errors were encountered: