bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
d90a924480a061683786e459a2e1c1d0b6e4f1e4 |
|
12-Dec-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: timeout_remove(NULL) is a no-op |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
ef597c4619eb021563f659b886c67762fce7a817 |
|
08-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-sql: Explicitly specify used *_vfuncs methods for drivers.
This allows adding more methods without modifying all the existing drivers. |
402f9bcf48cbccc17fdb5f3ea411a7967aed0fd0 |
|
17-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-sql: Add API support for asynchronously iterating over rows.
sql_query() can already do an async lookup, but the full result needs
to be available immediately. This can be inefficient for large results.
Add a new SQL_RESULT_NEXT_MORE return value and sql_result_more() for
asynchronously requesting more results.
This changes the API a bit, but isn't done by default by any drivers yet.
Also callers that can't handle this are hopefully checking for "ret < 0",
which allows them to handle such an async-more request as an error
instead.
sql_result_next_row() will be changed to return enum in a separate commit to
keep backwards compatibility in v2.2.x. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
e87393d3a562cdbc3fd0b346d57612808175f420 |
|
13-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
pgsql: Fixed clearing sql_commit_result.error_type
error was correctly set to NULL with the earlier memset(), but error_type
may have been garbage. This shouldn't have caused any actual problems. |
bb2b3656ef7635acc374f7fc19b25aeeb454ae95 |
|
17-Jul-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-sql: Added error_type to commit callback. |
f0339f522dc9c8e2e8a29ef9a3f937c431c6bd1b |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use only explicit int -> bool conversions
These were checked with a patched clang. |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
ccd8afd85a9a56c32b38c53ba38e13f0d95c3ff3 |
|
24-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
pgsql: Avoid crash in multi-command transaction if one of the queries couldn't be sent to server. |
d1a0845aed2bbbe9435e96bd10bd774ed194ca4b |
|
24-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
pgsql: Fixed committing a single sql_update_get_rows() transaction.
The rows weren't being set. |
e8db44d3d542a8d29500ddfc0e7b51004345af36 |
|
24-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
pgsql: Fixed committing multiple transactions.
This code is quite horrible and could use a larger redesign. But it appears
to be working for now.. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
b87761f9bbef949f31dae297e619ac3f5e9c2b2e |
|
02-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Implemented sql_escape_blob() |
1856c361aad526948d56d8aafd576bca94516b92 |
|
02-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Debugging help - Added assert before clearing sql_result.callback.
If result is unrefed too many times, this still allows accessing the
callback from a debugger. |
b457d2ecf97fb52064f9dd563fd4e8065af39dfb |
|
02-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-sql: sql_result.free() should never be reached from the query callback.
This code was probably added before sql_result refcounting. |
c93aca832ee532010ead91b85fa9f614132e1be2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of atoi(). |
af98c413eebe0c8c49fbe785fc34915c92ebe8c1 |
|
15-May-2015 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't crash at disconnect/deinit if there's an unfinished query. |
a99b64f7d63812806ee40c2e8a347343fa3b84a7 |
|
15-May-2015 |
Timo Sirainen <tss@iki.fi> |
pgsql: Log a warning if DNS lookup takes too long. Don't include it in connect timeout. |
1d132fe27d010b73aacc605b4c6257b0079f9e97 |
|
14-May-2015 |
Timo Sirainen <tss@iki.fi> |
pgsql: Include connect state string on connect failure errors. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
35f3b7e05afecacd0332c210c6e253911c2813d8 |
|
16-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
Use io_loop_set_current() instead of directly setting it. |
96d12aa688454b6a1b5b2d3c752f66087ff0c7a1 |
|
24-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
mysql/pgsql: Don't bother logging about having connected to the database.
There's probably no good reason to have them? Errors are of course still
logged. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
bd63b5b860658b01b1f46f26d406e1e4a9dc019a |
|
11-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Plugin ABI version checking improvements.
Previously the plugin version was checked against the version string
returned by the currently running Dovecot master process, not necessarily
the same as the binary. Also version_ignore=yes setting skipped the version
check entirely.
Now there's a new DOVECOT_ABI_VERSION macro that can (at least in theory) be
updated only when the ABI actually changes. The version is in format
"2.2.ABIv1(2.2.15)", where the (2.2.15) would be the actual Dovecot version
number that gets ignored when comparing the strings.
Also now the plugin version is compared to the actually running binary's
ABI, not the master's version, and it can't be ignored with a setting. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
87b8a4b6805d0b13af6a417dc70bdc74027bf1d3 |
|
26-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
pgsql: Fixed a potential crash if connection got closed during synchronous query. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
a343811459d1d2259e668f369646a20f02301c2c |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-sql: If mysql/pgsql commit fails due to server disconnection, reconnect and retry. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
294c71436de227178c709e4d498e7be9b5d8d7fe |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't assert-crash if query fails when trying to send it. |
554c1c792dc6fce1e25c74555c2da786bffde75f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
pgsql: If host isn't given, don't show pgsql((null)) as log prefix (or crash). |
5fbf8719b9ef072295c16bc4492f9f0ece92117d |
|
02-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
mysql/pgsql: Log prefixes now contain also the hostname.
This is useful when there are multiple hosts in use. |
6df2db16b3920346ed07cefb86e8bdcb7e1faec5 |
|
17-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
pgsql: Added assert. |
f119596e34bc4a7ce374f4aa5f4f1eb12061a372 |
|
17-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't assert-crash on "query timed out" error. |
36c4702131e5a04984ad5d07cf5d8d5c633d43c3 |
|
09-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
pgsql: When executing synchronous queries, don't wrongly add a connect timeout. |
4371df92c07fb923aabca7e90d307eccac48b2d6 |
|
04-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Include Dovecot version number check when loading SQL plugins. |
407caeb5d0c8a6b158e2caef48dd909011d40340 |
|
24-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
pgsql: Avoid epoll_ctl() errors when closing connection. |
9349a0afffad990e45d3ad33081e1d2d9e68a753 |
|
23-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-sql: sql_disconnect() now aborts all pending requests. |
f6e301cb2060c4367d8145e2bf5d553ba87ceb34 |
|
03-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
pgsql: Changed the way IO handlers are added/removed.
Remove IO handlers before calling any pgsql functions, so that if it closes
the socket, we don't later try to remove IO for already closed socket. |
ab1b9a793d57a60c230a41f65f1a25d52c026233 |
|
29-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
pgsql: Fixes for errors handling with synchronous sql queries.
--HG--
branch : HEAD |
4c9c55e15f35474f53f11659e796c63b1c34e884 |
|
28-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Don't try to reconnect on deinit or intentional disconnect. Fixes a timeout leak.
--HG--
branch : HEAD |
6b2738c39a868ff9291867138c55029fc40cf105 |
|
04-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Use generic sql connection pooling code for mysql/pgsql.
It's possible to give multiple host settings to do load balancing / HA.
If one host is down, another one is tried. All queries are automatically
retried in another host if they fail in first one.
Since PostgreSQL support async queries, Dovecot can create multiple
connections to the database as needed, so it can do lookups in parallel. The
number of connections can be changed with maxconns=n in connect_query, the
default is 5.
--HG--
branch : HEAD |
0db5b158a00c08955bdacc99b1e2cd1ec07f4311 |
|
03-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Make driver structs const.
--HG--
branch : HEAD |
c44f402f17f9a58ead24ac0083945cae86fb172b |
|
27-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't leak memory if query returns multiple results.
Found by Rainer Weikusat.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--HG--
branch : HEAD |
e20e638805c4bd54e039891a3e92760b1dfa189a |
|
08-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_foreach*() in some useful places.
--HG--
branch : HEAD |
bfdf0fd7b6186f64cbdcbf1cb2bf9c42a9007b77 |
|
07-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
lib-sql: Added sql_update_get_rows().
--HG--
branch : HEAD |
26cdaf7097427fa90343260fa236af12ab93cca3 |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: We didn't read all the SQL packets replies from the server.
--HG--
branch : HEAD |
3656c91dcb8336814bebd4500e81c3dde25233e6 |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
SQL API change: SQL results can be now refed/unrefed.
--HG--
branch : HEAD |
e9a0dc3e1e63f0f3affbcea7a0f5ffc112f34427 |
|
07-May-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: We hadn't called PQsetnonblocking().
--HG--
branch : HEAD |
e958a3c4573058f17999f0083a34080ca35e34d8 |
|
06-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: Fixes to handling reconnecting to server.
--HG--
branch : HEAD |
892b3cbf0eba9ba455448adcf71864a409345c6d |
|
26-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't break when using multiple transactions.
--HG--
branch : HEAD |
f4c0b1874b0533bcf2df1d28d584ff02cfdae3fa |
|
19-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: More fixes to transaction handling.
--HG--
branch : HEAD |
9c2b0eb659540b9db8dd3a8a6a2515921fbe8eeb |
|
17-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't write to freed memory if transaction is aborted while SQL commands are being executed.
--HG--
branch : HEAD |
158bd06e896df0a709e2677e3a046658ca8a2efd |
|
17-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: Removed accidentally committed debug code.
--HG--
branch : HEAD |
336805469db97f2d67c6a8d8fdd91fb48ec6e2b3 |
|
17-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't use BEGIN/COMMIT if transaction has only a single change.
--HG--
branch : HEAD |
68f0dfb4b2815ecbc1bd8d8a68adcfd577ec55ae |
|
12-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: If query failed because connection was lost, retry it automatically.
--HG--
branch : HEAD |
6de3b65d78d95cc7a123d1b244c1839324306c47 |
|
12-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: ROLLBACK wasn't sent correctly in synchronous commit failures.
--HG--
branch : HEAD |
9672bb2a11c37c275d695451accd824da5c9e485 |
|
12-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
pgsql: If query fails because connection gets closed, return a proper error message.
--HG--
branch : HEAD |
a54fa00087ba926a3d966a8449d8d7579e89911c |
|
12-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
psql: Don't give errors with epoll if db connection gets closed.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
06f537a8e0b399222cc2a7755015ef3963525fd2 |
|
08-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't crash in sync queries if db can't be connected to.
--HG--
branch : HEAD |
5fe06fea9fee0f5e4e9cb49f6866877223f78b85 |
|
08-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
pgsql: Don't break with synchronous queries (with dict-sql)
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
a1aaf11831cab8346d6d0dc702e37b3f1d95eb43 |
|
12-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling transaction updates.
--HG--
branch : HEAD |
840a3701b7a0f7fadd17738998c33790a8dfad2d |
|
12-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
More fixes to handling driver_pgsql_query_s() when not connected.
--HG--
branch : HEAD |
1412a091183dc0e5d6ea4f403a5cd4f4cd5c7301 |
|
12-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't break if driver_pgsql_query_s() fails because we're not connected.
--HG--
branch : HEAD |
c9343c25215e98880db8f9e9c5f120f6311bc06d |
|
12-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Crashfix when calling driver_pgsql_escape_string() and we're not connected.
--HG--
branch : HEAD |
3e28b527dd6048a40684afd29cff0ee008fc0014 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Let deinit() free all the memory itself after all.
--HG--
branch : HEAD |
0ae010139a1bb3b29fbf117c5da1a6a6c6b7b5a0 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Added module_contexts to struct sql_db.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
a94936bafd127680184da114c6a177b37ff656e5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed _ prefixes from function names.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
22627da0fb77c1d0d9a8e8bc485ef5540b6f2e69 |
|
09-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes
--HG--
branch : HEAD |
61dca057fe86fd5ae57f5106f8f049b7287d78cd |
|
09-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Timeout queued queries after a while if we can't connect to server.
--HG--
branch : HEAD |
1ac19c5c2b66a12f5598792aad15114ee3eb62e2 |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added sql_result_setup_fetch() which makes it easier to fetch rows into
structures. Added sql_result_get_field_value_binary(), which is currently
not implemented for MySQL.
--HG--
branch : HEAD |
9fcf7b79236b0045f7709718f7b65ada516565e7 |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
If trying to escape a string before being connected, connect first.
--HG--
branch : HEAD |
28cddf411c475eb8bb84b4023398bb12346ce5ad |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Don't send commit/rollback if nothing was done in the transaction.
--HG--
branch : HEAD |
1285518f4f8905f22f5812d022a9f75b51752ed4 |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
If reply is received from server before going to ioloop, don't hang.
--HG--
branch : HEAD |
510a871e2187891d538bf2ebb3cfd2056003af88 |
|
08-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed to work with new ioloop code
--HG--
branch : HEAD |
9a605d0cd75f4c1431b660ad659cdb9fd05a3f3b |
|
07-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
t_push/t_pop the callback.
--HG--
branch : HEAD |
dd171dccbe98fc63ca737e6e4e8edbeb601e5cbd |
|
07-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Queueing code was somewhat broken and caused queries to get lost.
--HG--
branch : HEAD |
2cfe9983ce7a6280636ee12beccc2e865111967b |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced void *context from a lot of callbacks with the actual context
type. Also added/fixed some context type checks.
--HG--
branch : HEAD |
b221779c191d1fb5fa7eb03907e62d39d1edeb08 |
|
01-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
Try to handle failures better.
--HG--
branch : HEAD |
13a8c553f293349248b161ff851743498916e26e |
|
01-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
sql_escape_string() should return const char *, not char *.
--HG--
branch : HEAD |
24ce0c343cefe54af841871fa39dbc3464028b06 |
|
31-May-2006 |
Timo Sirainen <tss@iki.fi> |
Added sql_escape_string()
--HG--
branch : HEAD |
d16b506f5540e3407d256bda35624b38a5ecf88f |
|
31-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Make sure queued queries and timeout get freed when deinitializing. Send the
first query immediately after connected to pgsql instead of waiting for 5
seconds.
--HG--
branch : HEAD |
0371406d952fe51367c7be91703e5634b7d9d225 |
|
26-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added support for dynamically building SQL drivers.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
944a12ae4f453cc3f8a25f1e9047a5094fdfe828 |
|
11-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added assert
--HG--
branch : HEAD |
46744f1c9837f189e1c1b13e4d83231b3c9dfff6 |
|
10-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
dc9de21d4375faeedbe5b7e941502ac578650da9 |
|
10-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added support for transactions and synchronous SQL queries.
--HG--
branch : HEAD |
a0b89f3b1df99b3a32f44623f13ad1893118825b |
|
09-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Added sql_connect() to do explicit connecting. sql_init() no longer does.
--HG--
branch : HEAD |
ccffb125d94adff0ad776de5a96e22f864d6fb0a |
|
27-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Added sql_get_flags() function, currently returning only
SQL_DB_FLAG_BLOCKING.
--HG--
branch : HEAD |
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0 |
|
16-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Created generic asynchronous SQL API and implemented MySQL and PostgreSQL
drivers. MySQL is implemented synchronously because it's API doesn't provide
async way to do it.
Replaced pgsql and mysql userdb/passdb with generic sql userdb/passdb.
--HG--
branch : HEAD |