Commit graph

495 commits

Author SHA1 Message Date
Richard Frith-Macdonald
4f622fb975 check that config passed to -setOptions: is a dictionary 2022-06-09 07:23:30 +01:00
Richard Frith-Macdonald
34aec94427 Add option to require encrypted connection. 2022-06-08 16:43:13 +01:00
Richard Frith-Macdonald
a8f405c563 Prevent runaway looping if database connection is lost: re-establish connection to database before retrying quuery/execute. 2020-09-02 14:44:44 +01:00
Wolfgang Lux
267987d01c Reinstate fix to avoid deadlock while purging pool 2020-09-01 15:24:16 +02:00
Richard Frith-Macdonald
4c2a293640 Copying literal strings should just retain them. 2020-08-13 01:43:08 +01:00
Richard Frith-Macdonald
ce149e7ee3 Fixup for array quoting to retain old behavio of the -quoteArray: method while adding a new safe method which quotes strings in the array. 2020-08-12 20:30:46 +01:00
Richard Frith-Macdonald
8335ce336a fix error in method name 2020-08-12 20:17:18 +01:00
Richard Frith-Macdonald
a496d0dd8e Fixup for quoted array 2020-08-12 19:56:50 +01:00
Richard Frith-Macdonald
869cfda7d1 ensure max pool connections setting is sane (if less than 1, assume 5) 2020-07-02 17:51:53 +01:00
Richard Frith-Macdonald
7a142e57c4 Efficiency tweak 2020-06-04 16:45:17 +01:00
Richard Frith-Macdonald
d7a3c06c8b query result containers must implement -count 2020-06-04 10:14:34 +01:00
Richard Frith-Macdonald
cd7daff661 Tidy new logs 2020-06-04 09:41:55 +01:00
Richard Frith-Macdonald
76fd64f7c3 Tidy loging 2020-06-04 09:32:08 +01:00
Richard Frith-Macdonald
76e72d3c0f In duration logging report the number of records returned/affected 2020-06-04 09:29:46 +01:00
Richard Frith-Macdonald
76ea8d486e Make sure we flush buffered database notifications 2020-04-22 07:56:04 +01: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
1a0d338a78 fixup logging on connect 2020-03-21 17:27:18 +00: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
6c64e4cb9d consistently call -disconnect when connection is losts (so transaction end
ivar/lock adjustmentt is done).
2019-03-11 10:37:49 +00:00
Richard Frith-Macdonald
0fa39b65e0 Don't try to rollback wrapped transaction on exception if that exception was
telling us the database connection was lost (implicit rollback occurred).
2019-03-11 09:37:02 +00:00
Richard Frith-Macdonald
d6e4ccdb3e another quoting check fix 2019-03-09 09:39:34 +00:00
Richard Frith-Macdonald
0bb38c5def revert exttra un-proxy 2019-03-09 06:56:15 +00:00
Richard Frith-Macdonald
97216727ff improve diagnostics 2019-03-09 06:29:13 +00:00
Richard Frith-Macdonald
7b7d207f45 make code a bit clearer ... no functional change 2019-03-07 15:20:43 +00: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
Richard Frith-Macdonald
cfae0876cc Merge branch 'master' of ssh://github.com/gnustep/libs-sqlclient 2019-03-07 11:06:11 +00:00
Richard Frith-Macdonald
e0fdb1ce9a more quoting fixes 2019-03-07 11:05:25 +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
e8eeb75eca add missing file 2019-02-28 16:58:11 +00: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
1138287eb0 fixup adding prepared statement lost in last change 2019-02-19 15:36:59 +00:00
Richard Frith-Macdonald
d82d973983 remove deprecated transaction merging. 2019-02-19 13:55:31 +00:00