Commit Graph

43 Commits (d7ddbba693ff4833265e911bd53ba6b84871e45a)

Author SHA1 Message Date
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) 11 years ago
Kim Alvefur f60046aad5 util.sql: Log when transactions begin 11 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
Kim Alvefur 6b8541caca util.sql: Don't fetch row count of result sets for queries that don't have result sets 13 years ago
Kim Alvefur 567d00c045 util.sql: Set charset and collation for MySQL when creating tables 13 years ago
Matthew Wild 0dd53a7f83 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