<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: util/sql.lua history</title>
    <description>util/sql.lua revision history</description>
    <item>
    <title>util.sql: Add API to start an explicit write transaction</title>
    <link>http://hg.omfa.de/prosody-hg/log/e7c52d0b0e0d/util/sql.lua</link>
    <description><![CDATA[util.sql: Add API to start an explicit write transaction<br/>
<br/>
This will be used in SQLite3 to BEGIN IMMEDIATE, which attempts to<br/>
acquire write locks immediately instead of when the first write<br/>
statement is started. Thus it would fail faster if the write lock is<br/>
already taken. Normally that should not occur but e.g. prosodyctl could<br/>
take it.<br/>
<br/>
Investigating whether something similar is sensible in PostgreSQL, MySQL<br/>
is a future task.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 19 Aug 2024 00:06:45 +0200</pubDate>
</item>
<item>
    <title>util.sql: Don't send SQLCipher key to Postgres or MySQL (thanks gllmhyt)</title>
    <link>http://hg.omfa.de/prosody-hg/log/edd006093533/util/sql.lua</link>
    <description><![CDATA[util.sql: Don't send SQLCipher key to Postgres or MySQL (thanks gllmhyt)<br/>
<br/>
This was copied from util.sqlite3 which only deals with SQLite3, but<br/>
here Postgres or MySQL are also possibilities, which wouldn't support<br/>
this.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 16 Feb 2025 11:52:07 +0100</pubDate>
</item>
<item>
    <title>util.sql: SQLCipher support</title>
    <link>http://hg.omfa.de/prosody-hg/log/844e7bf7b48a/util/sql.lua</link>
    <description><![CDATA[util.sql: SQLCipher support<br/>
<br/>
This enables use of encrypted databases if LuaDBI or LuaSQLite3 has been<br/>
linked against SQLCipher. Using `LD_PRELOAD` may work as well.<br/>
<br/>
Requires SQLCipher &gt;= 4.0.0 due to the use of UPSERT]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 23 Jan 2025 16:38:56 +0100</pubDate>
</item>
<item>
    <title>util.sql: Remove unused String() and Integer() functions</title>
    <link>http://hg.omfa.de/prosody-hg/log/a378937103cb/util/sql.lua</link>
    <description><![CDATA[util.sql: Remove unused String() and Integer() functions<br/>
<br/>
According to MattJ, leftovers from an earlier vision for util.sql]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 22 Jul 2023 14:55:27 +0200</pubDate>
</item>
<item>
    <title>util: Prefix module imports with prosody namespace</title>
    <link>http://hg.omfa.de/prosody-hg/log/d10957394a3c/util/sql.lua</link>
    <description><![CDATA[util: Prefix module imports with prosody namespace]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 17 Mar 2023 16:23:16 +0100</pubDate>
</item>
<item>
    <title>mod_storage_sql: Record connection to database as module status</title>
    <link>http://hg.omfa.de/prosody-hg/log/a20923f7d5fd/util/sql.lua</link>
    <description><![CDATA[mod_storage_sql: Record connection to database as module status<br/>
<br/>
Allows retrieving this in e.g. a health reporting module<br/>
<br/>
Thanks pfak]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 30 Jan 2023 00:38:26 +0100</pubDate>
</item>
<item>
    <title>util.sql: Handle failure to detect connection encoding</title>
    <link>http://hg.omfa.de/prosody-hg/log/8a42fd6702e6/util/sql.lua</link>
    <description><![CDATA[util.sql: Handle failure to detect connection encoding<br/>
<br/>
Silences a luacheck warning about an unused variable]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 23 Dec 2019 21:13:27 +0100</pubDate>
</item>
<item>
    <title>util.sql: Preserve 3rd and 4th return values from transaction (fixes #1434) (thanks mrdoctorwho)</title>
    <link>http://hg.omfa.de/prosody-hg/log/a247fa8df7df/util/sql.lua</link>
    <description><![CDATA[util.sql: Preserve 3rd and 4th return values from transaction (fixes #1434) (thanks mrdoctorwho)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 28 Sep 2019 18:24:28 +0200</pubDate>
</item>
<item>
    <title>util.sql: Remove tostring call from logging</title>
    <link>http://hg.omfa.de/prosody-hg/log/c59d384b0959/util/sql.lua</link>
    <description><![CDATA[util.sql: Remove tostring call from logging<br/>
<br/>
Taken care of by loggingmanager now]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 30 Jul 2019 02:23:44 +0200</pubDate>
</item>
<item>
    <title>util.sql: Ignore if tables and indices already exist on creation (fixes #1064)</title>
    <link>http://hg.omfa.de/prosody-hg/log/7dd0dddd8e02/util/sql.lua</link>
    <description><![CDATA[util.sql: Ignore if tables and indices already exist on creation (fixes #1064)<br/>
<br/>
Tested with SQLite3 3.16.2 and 3.27.2 and Postgres 11.<br/>
<br/>
MySQL does not support IF NOT EXISTS for indices so not handled here.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 30 May 2019 23:50:28 +0200</pubDate>
</item>
<item>
    <title>util.sql: Switch from hacky multi-arg xpcall implementation to util.xpcall</title>
    <link>http://hg.omfa.de/prosody-hg/log/61376a3c0c1d/util/sql.lua</link>
    <description><![CDATA[util.sql: Switch from hacky multi-arg xpcall implementation to util.xpcall]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 11 Nov 2018 02:26:40 +0100</pubDate>
</item>
<item>
    <title>vairious: Add annotation when an empty environment is set [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/4f0f5b49bb03/util/sql.lua</link>
    <description><![CDATA[vairious: Add annotation when an empty environment is set [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 28 Feb 2018 20:06:26 +0100</pubDate>
</item>
<item>
    <title>util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/5d866eb8f18f/util/sql.lua</link>
    <description><![CDATA[util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 10 Nov 2017 17:47:11 +0100</pubDate>
</item>
<item>
    <title>util: Various minor changes to please [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/e5d00bf4a4d5/util/sql.lua</link>
    <description><![CDATA[util: Various minor changes to please [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 10 Nov 2017 05:42:32 +0100</pubDate>
</item>
<item>
    <title>util.sql: Discard useless substitution count from string.gsub in SQL debug logs</title>
    <link>http://hg.omfa.de/prosody-hg/log/a597ff326758/util/sql.lua</link>
    <description><![CDATA[util.sql: Discard useless substitution count from string.gsub in SQL debug logs]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 08 Nov 2017 10:45:58 +0100</pubDate>
</item>
<item>
    <title>util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) (Thanks Ge0rG)</title>
    <link>http://hg.omfa.de/prosody-hg/log/6a098961bc00/util/sql.lua</link>
    <description><![CDATA[util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) (Thanks Ge0rG)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 07 Nov 2017 09:26:48 +0100</pubDate>
</item>
<item>
    <title>util.sql: Don't log at error level if a transaction failed and was retried ok</title>
    <link>http://hg.omfa.de/prosody-hg/log/e9ac2d93de18/util/sql.lua</link>
    <description><![CDATA[util.sql: Don't log at error level if a transaction failed and was retried ok]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 04 Oct 2017 10:16:42 +0100</pubDate>
</item>
<item>
    <title>util.sql: Greedily read all rows so we can close queries early (fixes #391)</title>
    <link>http://hg.omfa.de/prosody-hg/log/becb593ed86d/util/sql.lua</link>
    <description><![CDATA[util.sql: Greedily read all rows so we can close queries early (fixes #391)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 04 Aug 2017 18:52:15 +0100</pubDate>
</item>
<item>
    <title>util.sql: Produce more SQL-standard-like debug messages</title>
    <link>http://hg.omfa.de/prosody-hg/log/655837e9eeeb/util/sql.lua</link>
    <description><![CDATA[util.sql: Produce more SQL-standard-like debug messages]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 13 Apr 2017 22:37:35 +0200</pubDate>
</item>
<item>
    <title>util.sql: Strip indentation from queries for debug logging</title>
    <link>http://hg.omfa.de/prosody-hg/log/29b3957db212/util/sql.lua</link>
    <description><![CDATA[util.sql: Strip indentation from queries for debug logging]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 12 Apr 2017 18:57:40 +0200</pubDate>
</item>
<item>
    <title>util.sql: Apply quote transform in engine:execute so it is applied to eg encoding checks in mod_storage_sql (thanks Martin)</title>
    <link>http://hg.omfa.de/prosody-hg/log/6e0defa19ab9/util/sql.lua</link>
    <description><![CDATA[util.sql: Apply quote transform in engine:execute so it is applied to eg encoding checks in mod_storage_sql (thanks Martin)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 12 Apr 2017 17:26:44 +0200</pubDate>
</item>
<item>
    <title>SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885)</title>
    <link>http://hg.omfa.de/prosody-hg/log/7361412a9664/util/sql.lua</link>
    <description><![CDATA[SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 10 Apr 2017 23:13:39 +0200</pubDate>
</item>
<item>
    <title>util.sql: remove unused one-letter loop variables [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/8a6c7c4b15fb/util/sql.lua</link>
    <description><![CDATA[util.sql: remove unused one-letter loop variables [luacheck]]]></description>
    <author>&#65;&#110;&#116;&#111;&#110;&#32;&#83;&#104;&#101;&#115;&#116;&#97;&#107;&#111;&#118;&#32;&#60;&#97;&#118;&#54;&#64;&#100;&#119;&#105;&#109;&#108;&#97;&#98;&#115;&#46;&#110;&#101;&#116;&#62;</author>
    <pubDate>Sat, 23 Jul 2016 18:22:05 +0800</pubDate>
</item>
<item>
    <title>util.sql: Import type too (fix global access)</title>
    <link>http://hg.omfa.de/prosody-hg/log/0d991d5659f0/util/sql.lua</link>
    <description><![CDATA[util.sql: Import type too (fix global access)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 22 May 2016 14:37:52 +0200</pubDate>
</item>
<item>
    <title>util.sql: Import pcall (fixes #677)</title>
    <link>http://hg.omfa.de/prosody-hg/log/f791651ee334/util/sql.lua</link>
    <description><![CDATA[util.sql: Import pcall (fixes #677)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 22 May 2016 02:16:11 +0100</pubDate>
</item>
<item>
    <title>util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464)</title>
    <link>http://hg.omfa.de/prosody-hg/log/a2dce746599b/util/sql.lua</link>
    <description><![CDATA[util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 25 Mar 2016 16:09:34 +0100</pubDate>
</item>
<item>
    <title>util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012</title>
    <link>http://hg.omfa.de/prosody-hg/log/b4e99602ae75/util/sql.lua</link>
    <description><![CDATA[util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 23 Mar 2016 12:17:28 +0000</pubDate>
</item>
<item>
    <title>util.sql: Catch errors from LuaDBI connect (Fixes #568)</title>
    <link>http://hg.omfa.de/prosody-hg/log/98c4c3a2b536/util/sql.lua</link>
    <description><![CDATA[util.sql: Catch errors from LuaDBI connect (Fixes #568)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 21 Mar 2016 09:50:52 +0100</pubDate>
</item>
<item>
    <title>util.sql: Remove unused arguments [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/30dfaf36ea6d/util/sql.lua</link>
    <description><![CDATA[util.sql: Remove unused arguments [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 13 Mar 2016 18:35:00 +0100</pubDate>
</item>
<item>
    <title>util.sql: Don't break out of result retreival loops</title>
    <link>http://hg.omfa.de/prosody-hg/log/187ba2e9c012/util/sql.lua</link>
    <description><![CDATA[util.sql: Don't break out of result retreival loops]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 13 Mar 2016 18:31:53 +0100</pubDate>
</item>
<item>
    <title>util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method</title>
    <link>http://hg.omfa.de/prosody-hg/log/a23ca90d1984/util/sql.lua</link>
    <description><![CDATA[util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 13 Mar 2016 17:38:49 +0100</pubDate>
</item>
<item>
    <title>util.sql: Localize unpack() in Lua 5.2 compatible way</title>
    <link>http://hg.omfa.de/prosody-hg/log/0d7f80263813/util/sql.lua</link>
    <description><![CDATA[util.sql: Localize unpack() in Lua 5.2 compatible way]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 22 Feb 2016 17:30:12 +0100</pubDate>
</item>
<item>
    <title>util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin)</title>
    <link>http://hg.omfa.de/prosody-hg/log/d350e475f94e/util/sql.lua</link>
    <description><![CDATA[util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 21 Feb 2016 19:25:01 +0100</pubDate>
</item>
<item>
    <title>util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)</title>
    <link>http://hg.omfa.de/prosody-hg/log/f824057189ed/util/sql.lua</link>
    <description><![CDATA[util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 02 Sep 2015 14:14:22 +0200</pubDate>
</item>
<item>
    <title>util.sql: Log when transactions begin</title>
    <link>http://hg.omfa.de/prosody-hg/log/c37633feaece/util/sql.lua</link>
    <description><![CDATA[util.sql: Log when transactions begin]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 30 Aug 2015 13:45:36 +0200</pubDate>
</item>
<item>
    <title>util.*: Remove use of module() function, make all module functions local and return them in a table at the end</title>
    <link>http://hg.omfa.de/prosody-hg/log/5de6b93d0190/util/sql.lua</link>
    <description><![CDATA[util.*: Remove use of module() function, make all module functions local and return them in a table at the end]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 21 Feb 2015 10:36:37 +0100</pubDate>
</item>
<item>
    <title>util.{interpolation,prosodyctl,sql}: Trim trailing whitespace</title>
    <link>http://hg.omfa.de/prosody-hg/log/60957dd5b41b/util/sql.lua</link>
    <description><![CDATA[util.{interpolation,prosodyctl,sql}: Trim trailing whitespace]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 17 Jul 2015 12:43:04 +0200</pubDate>
</item>
<item>
    <title>util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL)</title>
    <link>http://hg.omfa.de/prosody-hg/log/b38db4b634d3/util/sql.lua</link>
    <description><![CDATA[util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:25:42 +0100</pubDate>
</item>
<item>
    <title>util.sql: Fix log level of debug message</title>
    <link>http://hg.omfa.de/prosody-hg/log/0cbb09afa5c3/util/sql.lua</link>
    <description><![CDATA[util.sql: Fix log level of debug message]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:16:17 +0100</pubDate>
</item>
<item>
    <title>util.sql: Log debug message when connecting to database</title>
    <link>http://hg.omfa.de/prosody-hg/log/9f2b1e0bba90/util/sql.lua</link>
    <description><![CDATA[util.sql: Log debug message when connecting to database]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:15:32 +0100</pubDate>
</item>
<item>
    <title>util.sql: Make set_encoding() return failure of SET NAMES</title>
    <link>http://hg.omfa.de/prosody-hg/log/e961ac4efbb3/util/sql.lua</link>
    <description><![CDATA[util.sql: Make set_encoding() return failure of SET NAMES]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:14:24 +0100</pubDate>
</item>
<item>
    <title>util.sql: Return failure if set_encoding() fails</title>
    <link>http://hg.omfa.de/prosody-hg/log/ea43a5af31ca/util/sql.lua</link>
    <description><![CDATA[util.sql: Return failure if set_encoding() fails]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:10:25 +0100</pubDate>
</item>
<item>
    <title>util.sql: Use appropriate collation for the chosen character set - fixes MySQL silently ignoring our SET NAMES command when we use utf8mb4</title>
    <link>http://hg.omfa.de/prosody-hg/log/e45a58c72609/util/sql.lua</link>
    <description><![CDATA[util.sql: Use appropriate collation for the chosen character set - fixes MySQL silently ignoring our SET NAMES command when we use utf8mb4]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:06:20 +0100</pubDate>
</item>
<item>
    <title>util.sql: Create table with same charset as the charset we selected for our connection, also use corresponding _bin collation</title>
    <link>http://hg.omfa.de/prosody-hg/log/fb952032f83e/util/sql.lua</link>
    <description><![CDATA[util.sql: Create table with same charset as the charset we selected for our connection, also use corresponding _bin collation]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 08 Jul 2015 15:04:23 +0100</pubDate>
</item>
<item>
    <title>util.sql: Allow onconnect callback to fail connection to the DB by returning false, err</title>
    <link>http://hg.omfa.de/prosody-hg/log/88b89facc3c9/util/sql.lua</link>
    <description><![CDATA[util.sql: Allow onconnect callback to fail connection to the DB by returning false, err]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 07 Jul 2015 17:43:14 +0100</pubDate>
</item>
<item>
    <title>util.sql: Call onconnect, provide noop dummy if not set</title>
    <link>http://hg.omfa.de/prosody-hg/log/ccf4fcfc2024/util/sql.lua</link>
    <description><![CDATA[util.sql: Call onconnect, provide noop dummy if not set]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 02 Jul 2015 22:32:44 +0200</pubDate>
</item>
<item>
    <title>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)</title>
    <link>http://hg.omfa.de/prosody-hg/log/b553a30620b2/util/sql.lua</link>
    <description><![CDATA[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)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 03 Jun 2015 15:57:46 +0100</pubDate>
</item>
<item>
    <title>util.sql: Expose db2uri helper function</title>
    <link>http://hg.omfa.de/prosody-hg/log/592f6112563e/util/sql.lua</link>
    <description><![CDATA[util.sql: Expose db2uri helper function]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 03 Jun 2015 15:55:43 +0100</pubDate>
</item>
<item>
    <title>util.sql: Rename some variable to match conventions</title>
    <link>http://hg.omfa.de/prosody-hg/log/36e2b35397b1/util/sql.lua</link>
    <description><![CDATA[util.sql: Rename some variable to match conventions]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 03 Jun 2015 15:54:52 +0100</pubDate>
</item>
<item>
    <title>util.sql: Remove unused functions and unused commented code</title>
    <link>http://hg.omfa.de/prosody-hg/log/7889515bac86/util/sql.lua</link>
    <description><![CDATA[util.sql: Remove unused functions and unused commented code]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 30 May 2015 22:23:19 +0100</pubDate>
</item>
<item>
    <title>mod_storage_sql2, util.sql: Set character encoding on every connect</title>
    <link>http://hg.omfa.de/prosody-hg/log/a966efeb6cb3/util/sql.lua</link>
    <description><![CDATA[mod_storage_sql2, util.sql: Set character encoding on every connect]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 11 Dec 2014 09:18:39 +0100</pubDate>
</item>
<item>
    <title>util.sql: Fix previous commit</title>
    <link>http://hg.omfa.de/prosody-hg/log/d1cc67ed0767/util/sql.lua</link>
    <description><![CDATA[util.sql: Fix previous commit]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 12 Nov 2013 11:38:52 +0100</pubDate>
</item>
<item>
    <title>util.sql: Get character set info from the correct database.</title>
    <link>http://hg.omfa.de/prosody-hg/log/06106726a1f0/util/sql.lua</link>
    <description><![CDATA[util.sql: Get character set info from the correct database.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 12 Nov 2013 11:13:45 +0100</pubDate>
</item>
<item>
    <title>util.sql: Rewrite auto increment columns to SERIAL for PostgreSQL</title>
    <link>http://hg.omfa.de/prosody-hg/log/f6145e894569/util/sql.lua</link>
    <description><![CDATA[util.sql: Rewrite auto increment columns to SERIAL for PostgreSQL]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 11 Nov 2013 23:09:18 +0100</pubDate>
</item>
<item>
    <title>util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng)</title>
    <link>http://hg.omfa.de/prosody-hg/log/a19b3646d5f0/util/sql.lua</link>
    <description><![CDATA[util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 10 Nov 2013 23:10:27 +0000</pubDate>
</item>
<item>
    <title>util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQL</title>
    <link>http://hg.omfa.de/prosody-hg/log/544ca3d94596/util/sql.lua</link>
    <description><![CDATA[util.sql: Rewrite MEDIUMTEXT to TEXT for drivers other than MySQL]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 30 Oct 2013 10:24:35 +0100</pubDate>
</item>
<item>
    <title>util.sql: Check what encoding SQLite3 uses</title>
    <link>http://hg.omfa.de/prosody-hg/log/ea6a3adb6a69/util/sql.lua</link>
    <description><![CDATA[util.sql: Check what encoding SQLite3 uses]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 29 Oct 2013 11:43:49 +0100</pubDate>
</item>
<item>
    <title>util.sql: Find out if MySQL supports utf8mb4 and use that</title>
    <link>http://hg.omfa.de/prosody-hg/log/f3e408ae59a6/util/sql.lua</link>
    <description><![CDATA[util.sql: Find out if MySQL supports utf8mb4 and use that]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 29 Oct 2013 11:42:55 +0100</pubDate>
</item>
<item>
    <title>util.sql: Support incrementing columns</title>
    <link>http://hg.omfa.de/prosody-hg/log/1f860279b2f8/util/sql.lua</link>
    <description><![CDATA[util.sql: Support incrementing columns]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 28 Oct 2013 23:20:25 +0100</pubDate>
</item>
<item>
    <title>util.sql: Allow columns to be marked the primary key</title>
    <link>http://hg.omfa.de/prosody-hg/log/1237f9cc3123/util/sql.lua</link>
    <description><![CDATA[util.sql: Allow columns to be marked the primary key]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 28 Oct 2013 23:19:47 +0100</pubDate>
</item>

  </channel>
</rss>
