You've already forked gnatcoll-db
mirror of
https://github.com/AdaCore/gnatcoll-db.git
synced 2026-02-12 12:59:31 -08:00
T315-007 Make prepare statement name case sensitive on postgres. Before this change the name of prepared statement was sent to postgres server unquoted in direct SQL statement PREPARE. As a result, the name was stored in lowercase in the database server session. PQexecPrepared API call with the statement name in original casing returned with error about failure to find the prepared statement. To fix that, we use PQprepare call (available starting from postgres version 8.0) or quoted name in direct SQL PREPARE statement in older postgres versions. Change-Id: I7ba455908de4d768f7bdc57102359ddfb5e6aaae
1.9 KiB
1.9 KiB