Commit Graph

185 Commits

Author SHA1 Message Date
Maxime Rainville
7de82cc6ca BUG Use more robust logic to retrieve generated ID 2023-06-28 14:24:27 +12:00
Steve Boyd
4f50dd55a2 API Remove PDO support 2023-03-16 11:03:04 +13:00
Maxime Rainville
fe426145d8
ENH Add support for CMS5 (#144) 2023-03-03 10:46:09 +13:00
Guy Sartorelli
15d4e9550b
FIX Reset query generator after iteration is complete (#139) 2022-09-15 16:32:43 +12:00
Loz Calver
7962f7c919
API Update PostgreSQLQuery to use generators 2022-09-02 13:37:04 +12:00
Steve Boyd
17e9f5388c FIX Ignore invalid byte character 2022-04-21 14:14:28 +12:00
Robbie Averill
3d50b3f9ec Merge branch '2.2' into 2.3 2019-11-27 17:27:36 -08:00
Maxime Rainville
753d73e1fe
BUG Fix issues preventing a site from being migrated from SS3 to SS4 (#104)
* BUG Enum value change wasn't being detected by alterTableAlterColumn because backslashes were not accounting

* BUG Update renameTable to also rename constraints

* BUG Add unit tests to cover requireTable and renameTable

* Fix liniting errors

* MINOR Update build to use xenial and add extra PHP version
2019-09-26 10:25:41 +12:00
Sam Minnee
75f4a35f71 FIX: Don’t drop first row on repeated iteration
Fixes https://github.com/silverstripe/silverstripe-framework/issues/9097

Related: https://github.com/silverstripe/silverstripe-framework/issues/9098

Co-authored-by: Guy Marriott <guy@scopey.co.nz>
2019-07-03 13:55:17 +12:00
Serge Latyntcev
0ffaf90512 FIX Usage of a bug-feature around aliases
Related https://github.com/silverstripe/silverstripe-postgresql/issues/95
2019-05-06 16:06:58 +12:00
Sam Minnee
fd27c17a80 MINOR: Add comment to explain ‘f’ coercion.
Follow-up to https://github.com/silverstripe/silverstripe-postgresql/pull/93
2019-01-23 22:19:26 +13:00
Sam Minnee
32a0aad720 FIX: Boolean ’t’/‘f’ strings need to be coerced to int properly. 2019-01-23 13:50:32 +13:00
Sam Minnee
72787ae83e FIX: Return correct types in PostgreSQLQuery
Fixes https://github.com/silverstripe/silverstripe-postgresql/issues/90
Helps fix https://github.com/silverstripe/silverstripe-framework/issues/7039
2018-11-05 18:13:47 +13:00
Damian Mooyman
e0d5536715
API Support better transaction nesting 2018-06-19 16:20:07 +12:00
Daniel Hensby
97afbd9a88
FIX Allow nested transactions 2018-02-08 20:00:49 +00:00
Damian Mooyman
1f6d892609
Merge remote-tracking branch 'origin/1.2' into 2.0
# Conflicts:
#	code/PostgreSQLDatabase.php
2017-12-07 16:30:22 +13:00
Daniel Hensby
ee356b1ad7
[SS-2017-008] Fix SQL injection in search engine 2017-11-21 15:34:59 +00:00
Damian Mooyman
685e33cf84
BUG Fix postgres + PDO not working
BUG Fix empty enums
2017-11-20 09:07:32 +13:00
Neil Gladwin
7a8bcd1ec5 Returns the last inserted ID using currval() which is session dependant rather than last_value which is across all sessions 2017-10-20 13:38:06 +10:00
Daniel Hensby
1c953025e6
Merge branch '1.1' into 1.2 2017-07-26 12:15:02 +01:00
Daniel Hensby
1a78f20b8a
Merge branch '1.0' into 1.1 2017-07-26 11:52:50 +01:00
Daniel Hensby
4b3fd28b3b
Backport of #48 2017-07-26 11:48:27 +01:00
Russell Michell
45233e4e74 FIX: Fixes #64 by the addition on of the USING clause. 2017-07-26 08:04:48 +12:00
Damian Mooyman
e941f0b122
API Ensure table aliases longer than max characters are safely re-written 2017-05-26 10:15:10 +12:00
Daniel Hensby
35c1428c63
Getting postgres to work with stricter index api 2017-05-19 18:29:06 +01:00
Loz Calver
b5214def7c FIX: PostgreSQLQuery::seek() returning indexed array instead of associative 2017-01-13 11:04:01 +00:00
Loz Calver
72ca91981f FIX: PostgreSQLQuery::seek() failed to return a row 2017-01-12 16:19:27 +00:00
Daniel Hensby
d3d2875012
FIX BigIng bug with default clause 2016-11-10 00:21:28 +00:00
Damian Mooyman
f2ba2f6717 BUG Fix reference to obsolete API (#59) 2016-10-28 16:50:09 +13:00
Damian Mooyman
a5738dbfd1 BUG Fix installer for 4.0 (#58) 2016-10-26 14:24:00 +13:00
Damian Mooyman
d8aab6383e Rename SS_ prefixed classes (#57) 2016-09-09 15:47:01 +12:00
Damian Mooyman
fc915b856a Update for framework namespacing 2016-09-01 16:22:17 +12:00
Damian Mooyman
586fbce1e8 Update for SilverStripe\CMS namespace 2016-08-12 10:28:47 +12:00
Damian Mooyman
e2096d690c Suppress upgrade of certain strings 2016-07-05 16:27:31 +12:00
Damian Mooyman
db2d4574d8 Remove dead code 2016-07-04 13:53:54 +12:00
Damian Mooyman
f83fa173d9 Move config into private statics for future maintainability 2016-07-04 13:53:54 +12:00
Damian Mooyman
f797f49aeb BUG Fix pg_query / pg_query_params not correctly raising exceptions on error 2016-07-04 13:32:41 +12:00
Damian Mooyman
946d429c41 Upgrade code for new namespaces 2016-07-04 13:32:41 +12:00
Damian Mooyman
3780d1b152 BUG Fix constraints ignoring schema 2016-01-21 09:52:37 +13:00
Damian Mooyman
e46a37090c Converted to PSR-2 2016-01-21 09:49:28 +13:00
Damian Mooyman
24caacbf3b Merge remote-tracking branch 'origin/1.2'
# Conflicts:
#	code/PostgreSQLSchemaManager.php
#	composer.json
2016-01-21 09:30:15 +13:00
helpfulrobot
605ba3eeff Converted to PSR-2 2015-12-18 07:18:01 +13:00
Damian Mooyman
2b3da3c9a8 BUG Fix decimal not supporting non-integer values 2015-11-03 09:14:10 +13:00
Damian Mooyman
90a7539ebd Fix incorrect SQL 2015-10-16 11:47:58 +13:00
Damian Mooyman
f932aa4b04 Update master to 2.0 for 4.0 compatibility 2015-10-16 11:30:00 +13:00
Damian Mooyman
a596d9d343 Update API for 3.2 release
Fix bug with literal question mark in conditions
See https://github.com/silverstripe/silverstripe-framework/pull/4288
2015-06-17 13:50:36 +12:00
Daniel Hensby
606879243a Merge pull request #33 from PapaBearNZ/search-engine-patch-1.1
FIX Total Items count on Search
2015-06-14 20:47:12 +01:00
Loz Calver
0a61b16caf NEW: Allow 'null' limit in database queries 2015-05-04 15:36:49 +01:00
devimust
9a2dc1adc8 FIX allow for spaces in enum field-type default values 2015-05-02 11:09:54 +00:00
Ingo Schommer
5a7ea699a0 Fixed indentation from last commit 2015-04-30 23:30:23 +12:00