sourcemod/plugins
peace-maker e5342afe2a
Add PostgreSQL database driver (#32)
* Add PostgreSQL DBI extension

Bug #3849
This adds a postgresql database driver called "pgsql".
The ambuild script changes could be very wrong ;)

* Add pgsql support to clientprefs

This was originally made by Lyfe in bug 3849! Thanks for that.
PostgreSQL supports the 'IF NOT EXISTS' clause when creating tables
since version 9.1, so i've switched to use that.

* Added pgsql support to sql-admin-manager

* Add --pgsql-path to ambuild configure

* More ambuild fixes

* Compile libpq with ambuild

* Try to generate postgres configs

* Add dummy config file

* More ambuild fixes

* Get errorcode and readable error in preparequery

No need to stop getting the errorCode, if the error string should be
retrieved. Just return both!

* Fix indentation in AMBuilderPGSQL

* Try to patch and configure postgres through ambuild

* Revert "Try to patch and configure postgres through ambuild"

This reverts commit 68dfc82b8eb0ce11f621af67ec247b5f47e4a189.

* Update to use PostgreSQL 9.4

* Move postgres preparation into seperate script

Fetching, preparing and configuring of the postgresql sourcecode
is done in a seperate prepare_postgresql.sh script now.

People can use this script for their manual builds,
if they don't want to use checkout-deps.sh.

* Add patch to configure.in again

Remove the version check for autoconf in postgres 9.4 too.

* Nit: Support older objdirs for hasPgSql ambuild option

* Update to use PostgreSQL 9.4.6

* Use newer AMTL and PGSQL 9.6

* Fix threaded queries

When running the thread part of a query, it already gets the atomic
lock. Don't try to get it twice in that case.

Use a seperate lock to protect access to the lastInsertID and
lastAffectedRows variables.

* Fix SetCharacterSet racing with threaded queries

Same fix like in the mysql driver.

* Use ke::AutoLock for lastInsertID mutex

* Fix fetching one more row than available

Don't try to access a row that doesn't exist when iterating rows.

* Improve sanity checks on column access

Don't call libpq functions with out of bounds column indices.

* Let QuoteString return false if quoting failed

* Fix build for x64 support changes and update to PGSQL 9.6.9

* Fix linux build

* Fix building of connection options string

snprintf doesn't support overlapping buffers.

* Update to PostgreSQL 9.6.15

* Fix crash after freeing first IQuery object

* Fix code crunch

* Fix memory leak, cleanup

* Nuke MSVC project and Makefile

* Remove unsupported numeric error codes

* Use STL threads

* Add prebuilt libpq for Linux and Windows

* Restore and fix version.rc file

* Add PostgreSQL build instructions

* Add prebuilt libpq for Mac

* Add win64 libpq build

This is version 9.6.15 since that's what I still had laying around.

* Fix buildscript

* Fix x64 build on linux and mac

Co-authored-by: Erik Minekus <tsunami@tsunami-productions.nl>
2021-03-11 11:21:51 +01:00
..
admin-flatfile Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
adminmenu Fully convert dynamicmenu to transitional enum structs. (#1082) 2019-09-15 14:02:46 -07:00
basebans Fixed unauthorized menu usages (#1374) 2020-11-05 11:34:00 +01:00
basecomm Improvements on !admin menu flags (#1364) 2020-10-24 23:52:35 +00:00
basecommands Fixed unauthorized menu usages (#1374) 2020-11-05 11:34:00 +01:00
basevotes Improve logging on map/generic votes (#1362) 2021-03-08 05:02:20 -08:00
funcommands Use GetCmdArgInt(Ex) in base plugins (#1203) 2020-03-04 22:07:00 +00:00
funvotes Ignore vote actions if target is no longer available (#649) 2017-08-22 20:56:12 +01:00
include core: Add client id to MultiTargetFilter forward (#1070) 2021-03-08 10:04:11 -08:00
playercommands Making rename's LogAction message consistent... (#696) 2017-09-26 20:22:38 -04:00
testsuite Use GetCmdArgInt(Ex) in base plugins (#1203) 2020-03-04 22:07:00 +00:00
admin-sql-prefetch.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
admin-sql-threaded.sp Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
adminhelp.sp Replace GetCmdArgs with args param (#1229) 2020-05-08 15:09:44 -07:00
adminmenu.sp Create GlobalForward & PrivateForward methodmaps (#1004) 2019-05-29 14:17:42 -07:00
AMBuilder Remove use of the Dep API. 2020-08-24 20:48:57 -07:00
antiflood.sp Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
basebans.sp Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
basechat.sp Do not require quotes around message in sm_psay (#1300) 2020-07-01 18:58:20 +01:00
basecomm.sp Fix basecomm failing to load on games without sv_alltalk (#1212) 2020-03-11 21:24:16 -07:00
basecommands.sp Prevent basecommands from printing to disconnected clients (#1138) 2020-02-06 22:32:16 -08:00
basetriggers.sp Collection of plugin cleanups (#777) 2018-07-12 11:16:18 -07:00
basevotes.sp Improve logging on map/generic votes (#1362) 2021-03-08 05:02:20 -08:00
clientprefs.sp cookies: Align output with sm_help (#977) 2020-07-08 20:38:35 -07:00
compile.sh Add spacing to compile.sh (#53) 2016-10-24 14:50:24 +01:00
funcommands.sp Change sm_beacon to use game-specific team colors (#1187) 2020-02-23 14:03:00 +00:00
funvotes.sp Fix wrong formatting to "Vote Delay Minutes" when delay above 60s (#1009) 2019-05-13 00:20:47 +01:00
mapchooser.sp mapchooser: Add option for persistent map storage (#1183) 2020-07-08 19:56:26 -07:00
nextmap.sp Alert players of map history console output (#1242) 2020-05-08 15:04:57 -07:00
nominations.sp Prevent clients from spamming global chat using sm_nominate (#1217) 2020-03-21 17:24:45 +00:00
playercommands.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
randomcycle.sp Add new function: GetMapDisplayName. 2015-09-15 16:16:58 -04:00
reservedslots.sp Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
rockthevote.sp Collection of plugin cleanups (#777) 2018-07-12 11:16:18 -07:00
sounds.sp Show errors for methods that are unused. (bug 6183) 2014-07-12 10:28:29 -07:00
sql-admin-manager.sp Add PostgreSQL database driver (#32) 2021-03-11 11:21:51 +01:00