Return a negative parameter description if no parameters have been described while parsing #52
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
After debugging the issue (#49) reported by @kishaningithub. I noticed that it is possible to not define the parameters by simply sending a out of bound/negative integer when describing a prepared message. This could probably be embedded by updating the
writeParameterDescriptions
to return a negative integer when no parameters are defined and to update the simple query option to simply not return any parameters.psql-wire/command.go
Lines 294 to 303 in 8f291e8
psql-wire/options.go
Lines 71 to 92 in 8f291e8
The text was updated successfully, but these errors were encountered: