David Anderson
032a30f676
Fix mac build, part 2.
2020-05-20 23:17:15 -07:00
David Anderson
a253e175bb
Replace all uses of AMTL threads with STL threads.
...
This also rewrites the work loop for threaded queries. It has been
simplified significantly.
2020-05-16 22:35:56 -07:00
peace-maker
6fcb411fe4
MySQL: Support multiple result sets in prepared queries ( #825 )
...
Prepared statements can return multiple result sets since MySQL 5.5. That can happen when calling stored procedures using `CALL x();`.
This change removes the previous caching of result bindings, since the number of fields in a result can differ from result set to result set. This could potentially have a negative impact on prepared statements always only returning one result set, since the result binding buffers are recreated everytime the statement is executed instead of once. That difference should be negligible.
Fixes #823 .
2018-06-05 18:33:33 +01:00
peace-maker
9cc518e408
Fix MySQL extension build using vs2015 ( #824 )
...
MySQL defines its own timespec_t. Official mysql builds are built using VS2013, so you still need to compile the client library yourself to be able to link it, but this change makes the dbi extension compatible with future versions already.
2018-06-05 09:29:11 -04:00
Michael Flaherty
5611ec54a2
Migrate extensions to common AMTL string funcs ( #785 )
2018-03-25 13:00:53 -07:00
Nicholas Hastings
08fe840bfd
Probably fix Windows build.
2018-03-20 17:25:48 -04:00
David Anderson
e2b399b8d3
Update to the latest AMTL - Rename Ref to RefPtr.
2015-11-08 13:14:57 -08:00
Peace-Maker
c6a7e86762
Lock database before setting character set
...
SQL_SetCharset wasn't thread safe and could race with other threaded
queries causing a crash.
2015-06-29 20:44:45 +02:00
Kyle Sanderson
e3349116cb
Establish a default timeout for MySQL connectivity.
2015-01-21 05:58:45 -08:00
David Anderson
448c55c0f2
Fix DBI after AMTL changes.
2014-09-03 21:11:17 -07:00
Scott Ehlert
ecec7dbef3
Deduplicate a number of files used by extensions by moving them to the public directory (bug 5341, r=psychonic).
...
These files include smsdk_ext.cpp, smsdk_ext.h, sm_memtable.h, CDetour/*, and asm/*.
The smsdk_config.h file for each extension has also been moved out of the 'sdk' directory into its parent.
--HG--
rename : extensions/bintools/sdk/smsdk_config.h => extensions/bintools/smsdk_config.h
rename : extensions/clientprefs/sdk/smsdk_config.h => extensions/clientprefs/smsdk_config.h
rename : extensions/cstrike/sdk/smsdk_config.h => extensions/cstrike/smsdk_config.h
rename : extensions/curl/sdk/smsdk_config.h => extensions/curl/smsdk_config.h
rename : extensions/geoip/sdk/smsdk_config.h => extensions/geoip/smsdk_config.h
rename : extensions/mysql/sdk/smsdk_config.h => extensions/mysql/smsdk_config.h
rename : extensions/regex/sdk/smsdk_config.h => extensions/regex/smsdk_config.h
rename : extensions/sdkhooks/sdk/smsdk_config.h => extensions/sdkhooks/smsdk_config.h
rename : extensions/sdktools/sdk/smsdk_config.h => extensions/sdktools/smsdk_config.h
rename : extensions/sqlite/sdk/smsdk_config.h => extensions/sqlite/smsdk_config.h
rename : extensions/structs/sdk/smsdk_config.h => extensions/structs/smsdk_config.h
rename : extensions/tf2/sdk/smsdk_config.h => extensions/tf2/smsdk_config.h
rename : extensions/topmenus/sdk/smsdk_config.h => extensions/topmenus/smsdk_config.h
rename : extensions/updater/sdk/smsdk_config.h => extensions/updater/smsdk_config.h
rename : extensions/sdktools/CDetour/detourhelpers.h => public/CDetour/detourhelpers.h
rename : extensions/sdktools/CDetour/detours.cpp => public/CDetour/detours.cpp
rename : extensions/sdktools/CDetour/detours.h => public/CDetour/detours.h
rename : extensions/sdktools/asm/asm.c => public/asm/asm.c
rename : extensions/sdktools/asm/asm.h => public/asm/asm.h
rename : public/sample_ext/sdk/smsdk_config.h => public/sample_ext/smsdk_config.h
rename : core/logic/sm_memtable.h => public/sm_memtable.h
rename : public/sample_ext/sdk/smsdk_ext.cpp => public/smsdk_ext.cpp
rename : public/sample_ext/sdk/smsdk_ext.h => public/smsdk_ext.h
2014-04-23 21:19:28 -05:00
David Anderson
4d43374fde
Add atomic reference counting and port DBI (bug 5876 part 3, r=ds).
...
--HG--
extra : rebase_source : a6defaf477e7a856ce91f92d5f3143f12c141da3
2013-08-23 00:18:13 -07:00
Peace-Maker
69d8b1c30d
Added SQL_SetCharset native to (re)set charset even after reconnect (bug 5786, r=psychonic).
2013-07-18 10:27:12 -04:00
Fyren
d78a0c87b8
Backed out changeset 42462959f48d
2011-08-20 16:44:16 -07:00
Fyren
88d4abeaf8
Shove.
2011-08-20 16:41:14 -07:00
John Schoenick
e8c141d775
Make SQL_LastInsertId and SQL_GetAffectedRows work on query handles, allowing their use with threaded queries
2011-05-14 20:21:37 -07:00
Scott Ehlert
939bc00b2b
Added detection for clang compiler and fixed various warnings triggered by it (bug 4878, r=dvander).
2011-04-23 21:53:53 -05:00
David Anderson
af82971bf5
Fixed Windows build.
2010-05-11 02:07:35 -07:00
David Anderson
271b52158e
Mac build fixes (bug 4392, r=me).
2010-05-11 01:46:55 -07:00
David Anderson
c0c9fc3267
Fixed buffer reallocation in dbi.mysql leaving stale pointers behind and crashing (bug 3352).
2008-10-19 22:57:28 -07:00
David Anderson
3b4c800baa
(merging from branch) fixed amb1583 - MySQL string fetch from prepared queries returned corrupted data.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402217
2008-05-29 04:47:42 +00:00
Scott Ehlert
251cced1f8
Spring Cleaning, Part Ichi (1)
...
Various minor things done to project files
Updated sample extension project file and updated makefile to the new unified version (more changes likely on the way)
Updated regex project file and makefile
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401971
2008-03-30 07:00:22 +00:00