Commit Graph

8 Commits

Author SHA1 Message Date
Joe Nahmias
55c80aa090 picodb(mssql): escape closing brackets within identifiers
Ref: https://docs.microsoft.com/en-us/sql/t-sql/functions/quotename-transact-sql
2022-10-23 16:19:50 -07:00
Joe Nahmias
427abb9961 picodb: include error code in SQLException error message 2022-10-23 16:19:50 -07:00
Joe Nahmias
64f589f759 picodb: Table::buildSelectQuery() should default columns to current table 2022-10-23 16:19:50 -07:00
Joe Nahmias
e3b9b2ce8f picodb: when logging SQL, include params as well 2022-10-23 16:19:50 -07:00
Joe Nahmias
bff5c15544 fix(picodb): do not include useless OFFSET 0 clauses
throws an error on MSSQL
2022-10-23 16:19:50 -07:00
Frédéric Guillot
fdbbb29cd6 Sqlite migrations should have foreign keys disabled outside the transaction
Existing behavior could lead to data loss if schema is changed.
2020-12-28 11:56:11 -08:00
kufeiko
cfada3542e Use SET NAMES instead of charset for DB connection
When using charset in buildDsn, not all variables are set on the server side. That leads to MySQL assuming latin1 charset and errors with Cyrillic, for example (I figured out the letter 'И', capital breaks the things).
2018-07-04 10:22:13 -07:00
Frédéric Guillot
a491348d44 Vendoring deprecated composer libs 2018-06-21 14:13:41 -07:00