Commit Graph

106 Commits

Author SHA1 Message Date
b05453d202 dblayeroo : normalize : use the trim only if not null value is provided
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4792 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-12-21 09:57:29 +00:00
7e77e6b841 dblayeroo : checkvalues : return the simpler tests in first error in place or the complexes ones
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4685 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-31 12:16:39 +00:00
fc56c52628 dblayeroo : Add FLOAT support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4655 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-29 12:53:09 +00:00
f490507966 dblayeroo : Exception must begin with \
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4647 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-27 16:03:06 +00:00
97a8e659db dblayeroo : Call normalize on checkValues too
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4637 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-25 18:16:57 +00:00
f1ee31c7ef dblayeroo : when testing the UNIQUE constraints, do not generate an exception if the value already exists in the table, return the error with the associated column name.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4634 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-25 14:00:37 +00:00
0bd2861c98 dblayeroo : return 406 instead of 500 if the provided values checked are invalid. It is not a server bug, it is a client bug
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4633 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-25 09:01:53 +00:00
95f7b55681 dblayeroo : Add normalize method by default
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4631 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-25 08:32:58 +00:00
3b2f0e6f82 dblayeroo : Update messages
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4629 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-24 14:35:22 +00:00
32686e29b2 dblayeroo : do not generate an error if there is no parenthesis in parameter for types
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4623 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-24 13:28:06 +00:00
9a28d95fea dblayeroo : update the syntax and change a checkRealTypes method name
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4622 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-24 13:19:55 +00:00
c01a476a9a dblayeroo : Add the "realTypes" support with basic associated tests. If the user want some custom tests, it must extends the class and create checkRealType_XXX tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4621 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-10-24 12:56:55 +00:00
14ef974d35 dblayeroo : do not generate an error on verify if a parameter is not provided
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4301 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-16 14:04:02 +00:00
8669bf4063 dblayeroo : listTables : sort the tables. Do not return the sqlite_sequence table
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4291 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-15 18:39:16 +00:00
daee67d401 dbayeroo : manage correctely the GROUP_CONCAT and the commas on string
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4290 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-15 18:29:51 +00:00
e5c67e779e dblayeroo : Manage the GROUP_CONCAT in PgSQL without error of casting
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4289 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-15 15:49:57 +00:00
0914b4afab dblayeroo : do not generate an error if a comma is provided to GROUP_CONCAT
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4288 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-15 15:34:40 +00:00
5deab3c430 dblayeroo : if there is only one displayed GROUP select, do not add an empty "GROUP BY" in SQL request. The request is invalid.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4286 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-15 06:48:14 +00:00
5560ab2943 dblayeroo : allow to orderAdd on aliases too
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4285 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-15 06:07:09 +00:00
71aa47a032 dblayeroo : return tor utf8 as indexes can not supports 255 chars
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4269 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-06 18:50:48 +00:00
22fdfe5b96 dblayeroo : utf8mb4 instead of utf8 charset in MySQL
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4250 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-06-15 09:43:28 +00:00
7b090d1662 dblayeroo : Add support to natural sort in ORDER
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4176 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-03-23 14:55:43 +00:00
a80a51c862 dblayeroo: the post execute select must not convert a NULL to INT if a column definition is INTEGER
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4004 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-11-30 10:57:29 +00:00
4fccb57e7a dblayeroo: allow the foreign keys to be a NOT NULL field, then not be tested
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4002 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-11-16 13:13:22 +00:00
092a3153f7 dblayeroo : bug in GROUP BY : return the child object group by display content instead of nothing
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3948 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-18 12:35:33 +00:00
c7e0e563ae dblayeroo: Manage correctely the DISTINCT select (remove the sep correctely)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3944 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-12 18:39:17 +00:00
199d8bf710 dblayeroo: DISTINCT is now allowed in the typing of the fields
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3943 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-12 14:31:01 +00:00
33e85225ed dblayeroo: Manage correctely the DISTINCT type of fields
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3942 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-12 14:17:56 +00:00
efe31391b5 dblayeroo: manage correctely the GROUP BY part: Add it only if needed and with the local and join objects parameters
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3941 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-12 12:59:33 +00:00
bf65632a2b dblayeroo: remove debug
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3940 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-12 09:44:46 +00:00
3065215106 dblayeroo: GROUP BY was incorrect when there was a join and only one local grouped function: do not call the displayed field on the join objects
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3939 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-12 09:44:12 +00:00
9fa5cc4ed2 dblayeroo: allow the DBException function to be extended easily to log in the application
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3936 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-05 14:36:47 +00:00
826d8851d4 dblayeroo: in isert, return the primary key if the provided value is not autoincrement field with valid value
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3920 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-05 07:02:09 +00:00
fdce871157 dblayeroo: pgsql doesn't supports lastInsertId if there is no autoincrement field
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3919 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-04 13:46:20 +00:00
82b25ae519 dblayeroo: PgSQL return the PK valeu added in INSERT if there is no AUTOINCREMENT primary field
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3918 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-04 13:42:18 +00:00
1b40529501 dblayeroo: PgSQL crash if the LastInsertID is called on table without autoincrement field. Return 1 in this particular case
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3917 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-09-04 13:14:47 +00:00
e2c877f732 dblayeroo: do not allow an array of array to be provided to displayAdd
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3901 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-08-04 09:19:20 +00:00
439513f65d dblayeroo: manage correctely the PGSQL string_agg (instead of GROUP_CONCAT)
dblayeroo: Manage correctely the Aliases (do not emit Notice in execute)


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3899 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-08-04 08:03:14 +00:00
9af6d7402d dblayeroo: update check the unique columns. Allow string with comma separated values or array
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3875 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-08-02 12:49:51 +00:00
a8ddee5833 domci update
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3859 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-08-01 13:43:40 +00:00
e56e19215f * dblayeroo: insert/update null are checked against the "NOT NULL" definition except for autoincrement key, which is allowed
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3857 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-08-01 13:39:37 +00:00
ca79fba390 dblayeroo: insert/update null are not checked against the field format
dblayeroo: insert/update null are checked against the "NOT NULL" definition


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3854 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-08-01 08:54:55 +00:00
c63a30eebf dblayeroo: Add the PDO::FETCH_ASSOC to directQuery
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3853 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-31 14:59:31 +00:00
443a2bcada dblayeroo: add directQuery support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3852 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-31 14:50:33 +00:00
8e24549ddd dblayeroo: add < and > comparisons
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3832 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-25 13:50:41 +00:00
3509b8b1f3 dblayeroo: manage the group by of the join object is defining the GROUP BY without not groupbed by field. (ex. Join with display MAX only field)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3831 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-25 12:10:19 +00:00
20befc4fcf dblayeroo: Do not add all the fields if there is no defined ones
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3830 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-25 11:21:21 +00:00
50062a4d1c dblayeroo: if displayAdd is empty, remove all the previous defined displayed columns
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3829 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-25 11:08:57 +00:00
cfd9f99518 dblayeroo: manage correctely the GROUP BY when there is join objects
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3828 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-25 09:49:55 +00:00
eea451b131 dblayeroo : do not add the not needed GROUP BY
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3826 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-07-25 08:57:29 +00:00