Commit graph

216 commits

Author SHA1 Message Date
Richard Frith-Macdonald
218578aa95 Add connect_timeout= option 2023-08-16 16:22:29 +01:00
Richard Frith-Macdonald
14dcbf5c7f make release 2023-01-13 15:00:52 +00:00
Richard Frith-Macdonald
36fe235dba Track committed transactions 2022-07-14 15:08:13 +01:00
Richard Frith-Macdonald
34aec94427 Add option to require encrypted connection. 2022-06-08 16:43:13 +01:00
Wolfgang Lux
267987d01c Reinstate fix to avoid deadlock while purging pool 2020-09-01 15:24:16 +02:00
Richard Frith-Macdonald
da1b900b92 Merge branch 'master' of ssh://github.com/gnustep/libs-sqlclient
Conflicts:
	ChangeLog
2020-04-21 10:53:12 +01:00
Richard Frith-Macdonald
dc7955472e Change notification code to de-duplicate notifications if/when postgres sends many copies of the same notification at the same time. Also change the code to queue notifications in the thread that received them (as documented) and only queue them in the main thread if the receiving thread does not have an active run loop. 2020-04-21 10:51:54 +01:00
Wolfgang Lux
1b44a32f31 Bring MySQL backend back to life for the GNUstep Objective-C runtime 2020-04-13 15:38:51 +02:00
Wolfgang Lux
7851639677 Eventually reconfigure a client connection that gets reused 2020-04-08 14:24:39 +02:00
Wolfgang Lux
535914366a Eventually reconfigure a client connection that gets reused. 2020-04-06 09:04:08 +02:00
Richard Frith-Macdonald
ca2f44a323 Improve logging of timings (log time taken for connection separately from
that to query/execute a statement).
2020-03-21 17:15:27 +00:00
Richard Frith-Macdonald
c3557e74be make aware of tiny strings 2020-02-27 14:55:59 +00:00
Richard Frith-Macdonald
a9588e8073 changes to avoid deadlock 2020-02-25 11:21:11 +00:00
Richard Frith-Macdonald
fea9797591 New SQLString implementation 2020-02-14 17:04:24 +00:00
Richard Frith-Macdonald
94f644590a Remove some redundant code 2020-02-11 15:32:49 +00:00
Richard Frith-Macdonald
bb47241044 Fix notinifcation posting to refrain from coalescing 2020-01-22 12:29:27 +00:00
Wolfgang Lux
ec590a5253 Hide database connection password from debug logs 2019-12-11 09:40:12 +01:00
Richard Frith-Macdonald
5d099c8557 fix error in exception text 2019-08-06 18:52:50 +01:00
Richard Frith-Macdonald
46cf998afc Improve duration/debug logging 2019-07-29 12:33:42 +01:00
Wolfgang Lux
085c36c340 Hide structure definition from public interface, as it is incompatible with ARC 2019-07-14 10:33:09 +02:00
Wolfgang Lux
4fdcad1440 Rewrite release method to become portable accross Objective-C runtimes 2019-05-03 17:45:54 +02:00
Richard Frith-Macdonald
9ba41b6d5b Merge branch 'master' of ssh://github.com/gnustep/libs-sqlclient 2019-03-07 15:09:56 +00:00
Richard Frith-Macdonald
b176015f28 Don't set flag to say we are in a transaction unless the sql executes 2019-03-07 15:09:15 +00:00
Wolfgang Lux
048b1a76f8 Fix insertTransaction:atIndex: to work as advertised 2019-03-07 14:14:59 +01:00
Richard Frith-Macdonald
92e2b06efc Improve warnings about literals 2019-03-07 12:06:34 +00:00
Wolfgang Lux
debbd3c763 Fix minor space leak in the Postgres backendConnect method 2019-03-01 13:31:43 +01:00
Richard Frith-Macdonald
b9a45a2fc4 add new method to pool 2019-02-28 16:57:41 +00:00
Richard Frith-Macdonald
8302102928 More sql injection prevention code 2019-02-28 16:51:49 +00:00
Richard Frith-Macdonald
d82d973983 remove deprecated transaction merging. 2019-02-19 13:55:31 +00:00
Wolfgang Lux
5201c42e01 Fix optimization to reuse small data values in Postgres query results so
that it actually works.
2019-01-24 11:39:28 +01:00
Wolfgang Lux
d52ddbd2f3 Avoid loss of precision when quoting floagint-point numbers 2018-11-23 14:48:25 +01:00
fredkiefer
aeb14dc493 * SQLClient.m: Fix some spelling errors. 2018-07-27 10:21:10 +02:00
Richard Frith-Macdonald
43bf08a70f Make SQLTransaction methods thread-safe 2018-06-29 09:22:13 +01:00
Richard Frith-Macdonald
f570253b40 fixup for {key?default} syntax 2018-04-16 16:45:25 +01:00
Richard Frith-Macdonald
2900203c67 Simplify database notification observation 2017-09-19 11:28:05 +01:00
Richard Frith-Macdonald
2be5efdd46 Making ready for release 2017-08-31 11:05:08 +01:00
Richard Frith-Macdonald
8b5db03110 More auto retry code 2017-08-27 16:13:10 +01:00
Richard Frith-Macdonald
396dcb0355 fixups for notification file handle monitoring 2017-08-25 10:33:55 +01:00
Richard Frith-Macdonald
6102dddbcc Fix for clean handling of loss of database server connection when we are
listening for notifications.
2017-08-15 11:13:06 +01:00
Richard Frith-Macdonald
2dc662177e More quoting changes 2017-07-04 12:13:16 +01:00
Richard Frith-Macdonald
23d6fea4b1 comment on new method and turn warnings on by default 2017-06-29 09:47:40 +01:00
Richard Frith-MacDonald
7fa072df70 Fix leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@40453 72102866-910b-0410-8b05-ffd578937521
2017-04-07 14:27:20 +00:00
Richard Frith-MacDonald
e5d3ea6f6b Changes for sql injection attack resistance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@40368 72102866-910b-0410-8b05-ffd578937521
2017-03-06 17:23:37 +00:00
Richard Frith-MacDonald
8e12a18ec2 Fix for thread safety issue spotted by Wolfgang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@40162 72102866-910b-0410-8b05-ffd578937521
2016-10-19 12:38:02 +00:00
Richard Frith-MacDonald
52bedc89b3 Don't allow pool clients to be set as database notification observers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@40152 72102866-910b-0410-8b05-ffd578937521
2016-10-18 08:32:05 +00:00
Richard Frith-MacDonald
5576e55028 fix to use case sensitive notification names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@39909 72102866-910b-0410-8b05-ffd578937521
2016-06-23 11:00:58 +00:00
Richard Frith-MacDonald
88ece98e6c missing changelog entry
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@39899 72102866-910b-0410-8b05-ffd578937521
2016-06-21 16:15:51 +00:00
Richard Frith-MacDonald
7ab46148d9 fixes to ensure that we don't return a client to a pool while it has
notification observers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@39895 72102866-910b-0410-8b05-ffd578937521
2016-06-21 15:34:42 +00:00
Richard Frith-MacDonald
905aa5c4a3 bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@39730 72102866-910b-0410-8b05-ffd578937521
2016-05-06 13:01:42 +00:00
Richard Frith-MacDonald
88d8226d7b Add -isNull
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@39698 72102866-910b-0410-8b05-ffd578937521
2016-04-27 07:55:26 +00:00