Commit Graph

53 Commits (0ff1619ea4e2a6702a3fb70135fb656efd64790b)

Author SHA1 Message Date
Kim Alvefur d2b548562f util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) (Thanks Ge0rG) 8 years ago
Matthew Wild c15a022de7 util.sql: Don't log at error level if a transaction failed and was retried ok 8 years ago
Matthew Wild 6bb4201fe2 util.sql: Greedily read all rows so we can close queries early (fixes #391) 9 years ago
Kim Alvefur 2f0ac824b2 util.sql: Produce more SQL-standard-like debug messages 9 years ago
Kim Alvefur 2b914fee7d util.sql: Strip indentation from queries for debug logging 9 years ago
Kim Alvefur 3604a84b9e util.sql: Apply quote transform in engine:execute so it is applied to eg encoding checks in mod_storage_sql (thanks Martin) 9 years ago
Kim Alvefur 1796c07956 SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885) 9 years ago
Anton Shestakov 5742b659ac util.sql: remove unused one-letter loop variables [luacheck] 10 years ago
Kim Alvefur ef34d5516d util.sql: Import type too (fix global access) 10 years ago
Matthew Wild 5a2ab12a7d util.sql: Import pcall (fixes #677) 10 years ago
Kim Alvefur 935e3cce46 util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464) 10 years ago
Matthew Wild 8005cf6813 util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012 10 years ago
Kim Alvefur 6a65e76fc6 util.sql: Catch errors from LuaDBI connect (Fixes #568) 10 years ago
Kim Alvefur 85a09491d9 util.sql: Remove unused arguments [luacheck] 10 years ago
Kim Alvefur c511635543 util.sql: Don't break out of result retreival loops 10 years ago
Kim Alvefur ee05252824 util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method 10 years ago
Kim Alvefur 0cb0253968 util.sql: Localize unpack() in Lua 5.2 compatible way 10 years ago
Kim Alvefur 2af32832ae util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin) 10 years ago
Kim Alvefur 0e48088e1b util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike) 10 years ago
Kim Alvefur f60046aad5 util.sql: Log when transactions begin 10 years ago
Kim Alvefur 3015aac8bc util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Kim Alvefur d6ff4a457a util.{interpolation,prosodyctl,sql}: Trim trailing whitespace 11 years ago
Matthew Wild c38e034cf4 util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL) 11 years ago
Matthew Wild fb93b9e90e util.sql: Fix log level of debug message 11 years ago
Matthew Wild 83415cdd67 util.sql: Log debug message when connecting to database 11 years ago
Matthew Wild 0c33175d45 util.sql: Make set_encoding() return failure of SET NAMES 11 years ago
Matthew Wild 6f02ac5ba6 util.sql: Return failure if set_encoding() fails 11 years ago
Matthew Wild 0c0e1786bf util.sql: Use appropriate collation for the chosen character set - fixes MySQL silently ignoring our SET NAMES command when we use utf8mb4 11 years ago
Matthew Wild 7d98c3be73 util.sql: Create table with same charset as the charset we selected for our connection, also use corresponding _bin collation 11 years ago
Matthew Wild b0b754aa33 util.sql: Allow onconnect callback to fail connection to the DB by returning false, err 11 years ago
Kim Alvefur c9035dd6cd util.sql: Call onconnect, provide noop dummy if not set 11 years ago
Matthew Wild 3b9fc2367c util.sql: Remove built-in engine caching. This is the wrong layer to do this, and unintentionally sharing connections could cause problems (e.g. when interleaving multiple queries and result fetching) 11 years ago
Matthew Wild c57a486144 util.sql: Expose db2uri helper function 11 years ago
Matthew Wild ac11127ab2 util.sql: Rename some variable to match conventions 11 years ago
Matthew Wild 4c6ef4cc77 util.sql: Remove unused functions and unused commented code 11 years ago
Kim Alvefur 2d59206551 mod_storage_sql2, util.sql: Set character encoding on every connect 11 years ago
Kim Alvefur f454faa15b util.sql: Fix previous commit 12 years ago
Kim Alvefur 72140f4dd6 util.sql: Get character set info from the correct database. 12 years ago
Kim Alvefur 507cb9e056 util.sql: Rewrite auto increment columns to SERIAL for PostgreSQL 12 years ago
Matthew Wild 12cea76200 util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng) 12 years ago
Kim Alvefur f04a2061aa util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQL 12 years ago
Kim Alvefur 7b0320c5c6 util.sql: Check what encoding SQLite3 uses 12 years ago
Kim Alvefur e20e010643 util.sql: Find out if MySQL supports utf8mb4 and use that 12 years ago
Kim Alvefur 4c4a45a987 util.sql: Support incrementing columns 12 years ago
Kim Alvefur 50ec28d155 util.sql: Allow columns to be marked the primary key 12 years ago
Kim Alvefur 9c9c795847 util.sql: Allow creating unique indices 12 years ago
Kim Alvefur acefadc54b mod_storage_sql2, util.sql: Move code for setting encoding to util.sql 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Kim Alvefur 1398e3d4f3 util.sql: Do lazy fetching of affected/rowcount 13 years ago
Kim Alvefur afbae0fd76 Backed out changeset 3c57c2281087 13 years ago