teamhackback / hb-ddb

Vibe.d Async native D Postgres client
https://teamhackback.github.io/hb-ddb/docs/ddb/pg.html
1 stars 1 forks source link

BOOLEAN fix and various stuff #38

Open Boris-Barboris opened 7 years ago

Boris-Barboris commented 7 years ago

1). BOOLEAN was broken, it was transfered in text mode instead of binary 2). scope ref did not compile on ldc 3). getOids from PGParameters returns range instead of allocating int array 4). (MAY BREAK SOMETHING) removed AA in PGParameters and stored them as array. I've got serious bugs in AA implementation, when columns were pushed to DB out of order and some fields were assigned to another ones during paramethrized queries. Array is simple and reliable. And no need to sort stuff. Just add parameters one by one in correct order and everything will be fine. 5). synchronized was not needed in PGConnection, it's already supposed to be protected by connection pooling. 6). simple "BEGIN" transaction method PGConnection.begin_default without parameters, when you don't want to explicitly pass perameters.