Commit Graph

50 Commits (d7789712dab1431eafbf00a8f3bb68e45738bc86)

Author SHA1 Message Date
Kim Alvefur 656c5d45a1 util.sql: Produce more SQL-standard-like debug messages 9 years ago
Kim Alvefur b3cd19063f util.sql: Strip indentation from queries for debug logging 9 years ago
Kim Alvefur f2c30c688f 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 91baabfede SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885) 9 years ago
Anton Shestakov 8e2e80c3f3 util.sql: remove unused one-letter loop variables [luacheck] 10 years ago
Kim Alvefur 8d720b7bfb util.sql: Import type too (fix global access) 10 years ago
Matthew Wild 8a32b7f2c3 util.sql: Import pcall (fixes #677) 10 years ago
Kim Alvefur c24be27b2f util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464) 10 years ago
Matthew Wild c50a32df40 util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012 10 years ago
Kim Alvefur c00adb21f4 util.sql: Catch errors from LuaDBI connect (Fixes #568) 10 years ago
Kim Alvefur f46a677512 util.sql: Remove unused arguments [luacheck] 10 years ago
Kim Alvefur 2b1ff306c3 util.sql: Don't break out of result retreival loops 10 years ago
Kim Alvefur b65ec4aebe util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method 10 years ago
Kim Alvefur 58a6a4b140 util.sql: Localize unpack() in Lua 5.2 compatible way 10 years ago
Kim Alvefur a729f9553c util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin) 10 years ago
Kim Alvefur 28202ed1c9 util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike) 10 years ago
Kim Alvefur 90f5cf4cc1 util.sql: Log when transactions begin 10 years ago
Kim Alvefur eaa823a597 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 97ed1aed6c util.{interpolation,prosodyctl,sql}: Trim trailing whitespace 11 years ago
Matthew Wild 376dd43396 util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL) 11 years ago
Matthew Wild c23293f382 util.sql: Fix log level of debug message 11 years ago
Matthew Wild 5a90847cd7 util.sql: Log debug message when connecting to database 11 years ago
Matthew Wild eed81c2f94 util.sql: Make set_encoding() return failure of SET NAMES 11 years ago
Matthew Wild 9f5bd334c5 util.sql: Return failure if set_encoding() fails 11 years ago
Matthew Wild eeb1c1be54 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 7a4ec3c57c 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 137f763966 util.sql: Allow onconnect callback to fail connection to the DB by returning false, err 11 years ago
Kim Alvefur 3dd49f5620 util.sql: Call onconnect, provide noop dummy if not set 11 years ago
Matthew Wild 3edc813e77 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 41996240ed util.sql: Expose db2uri helper function 11 years ago
Matthew Wild 15e84d4ec5 util.sql: Rename some variable to match conventions 11 years ago
Matthew Wild bfba36b194 util.sql: Remove unused functions and unused commented code 11 years ago
Kim Alvefur 655e1cde09 mod_storage_sql2, util.sql: Set character encoding on every connect 11 years ago
Kim Alvefur 0dce82a095 util.sql: Fix previous commit 12 years ago
Kim Alvefur a9e2cb510a util.sql: Get character set info from the correct database. 12 years ago
Kim Alvefur 95457cb25b util.sql: Rewrite auto increment columns to SERIAL for PostgreSQL 12 years ago
Matthew Wild a80e00e16f util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng) 12 years ago
Kim Alvefur 1bcfdab54f util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQL 12 years ago
Kim Alvefur 29988cfa70 util.sql: Check what encoding SQLite3 uses 12 years ago
Kim Alvefur a0d18144ed util.sql: Find out if MySQL supports utf8mb4 and use that 12 years ago
Kim Alvefur 22be283187 util.sql: Support incrementing columns 12 years ago
Kim Alvefur 136139f068 util.sql: Allow columns to be marked the primary key 12 years ago
Kim Alvefur 6c769838e9 util.sql: Allow creating unique indices 12 years ago
Kim Alvefur e993570759 mod_storage_sql2, util.sql: Move code for setting encoding to util.sql 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur f7acbbc783 util.sql: Do lazy fetching of affected/rowcount 13 years ago
Kim Alvefur 051779d694 Backed out changeset 3c57c2281087 13 years ago
Kim Alvefur c41f00e53f util.sql: Don't fetch row count of result sets for queries that don't have result sets 13 years ago
Kim Alvefur 06e7d7b489 util.sql: Set charset and collation for MySQL when creating tables 13 years ago
Matthew Wild 7d92759bf8 mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting cross-module connection sharing, transactions and Things - a work in progress 13 years ago