Commit Graph
97 Commits
Author SHA1 Message Date
liugang a35744b631 Revert "+ Reset dao::errors before CRUD to prevent from last CRUD disturb new CRUD."
This reverts commit 28a23d805b.
2023-11-23 13:04:18 +08:00
qixinzhi 7a5cd6fd40 * Add en comment. 2023-11-15 16:15:00 +08:00
qixinzhi 1261283192 * Add comment for throwError. 2023-11-15 16:14:03 +08:00
qixinzhi c02ef0f520 * Add throwError flag for throw exception with sql error. 2023-11-15 16:13:16 +08:00
daitingting b1ecdbcc22 * Adjust the way to check whether the data has the field or not. 2023-10-26 08:53:23 +00:00
daitingting c90f1d8949 * The field is seted when it is null. 2023-10-26 05:40:16 +00:00
朱金勇 6948740e1d * Migrate changes from 18.x to master. 2023-10-12 08:42:59 +00:00
dingguodong 186bb55781 * Change invalid comment. 2023-10-07 08:53:27 +08:00
dingguodong 4b5b7a6ae8 * Fix typo, trimed to trimmed. 2023-09-28 17:25:33 +08:00
dingguodong f7c4ef91e6 * Support more column naming rule, like 'updated_unix_desc'. 2023-09-28 17:24:12 +08:00
dingguodong 5234f01110 * Use = instead of IN if there is only one item to compare. 2023-09-22 10:44:29 +08:00
daitingting b52db07695 * Get the field type. 2023-09-18 07:06:24 +00:00
dingguodong 944eea4293 * Add type hint. 2023-09-06 10:27:02 +08:00
dingguodong 1cf2695f22 + Add function to filter a filed is null or not. 2023-09-04 14:50:43 +08:00
liugang 853e08c6fc * baseDAO: fix the replace method generate error sql. 2023-07-12 14:02:57 +08:00
qixinzhi 7a032ff49e * Update dao from master. 2023-07-11 03:19:01 +00:00
zhouxin ada87b5594 * Support query SQLite. 2023-06-19 16:17:24 +08:00
zhouxin bd582f55e9 * Add queue to exec sql use SQLite. 2023-06-19 15:57:40 +08:00
zhouxin f835c8fc16 * Push insert/update/delete sql to queue. 2023-06-14 13:45:19 +08:00
zhouxin 2b93e8d1ff * Support select from SQLite. 2023-06-14 11:19:54 +08:00
liuyongkai f337ce3739 * Add save sqlite queue function. 2023-06-11 10:19:46 +00:00
liuyongkai 81050e5bb7 * Add function to convert mysql sql to sqlite sql. 2023-06-11 09:15:15 +00:00
liuyongkai e0b6facd98 * Support write into SQLite by dao. 2023-06-11 07:26:36 +00:00
dingguodong 03cb5c3b8f * Replace this use of "join" with "implode". 2023-05-31 10:36:01 +08:00
dingguodong 4d6377011e * Replace '$foo === NULL' with 'is_null($foo)' which faster and better. 2023-05-31 10:36:01 +08:00
dingguodong b03b41760e * Replace the "die()" call. 2023-05-31 10:36:00 +08:00
Lufei 003c048c1e * Fix PHP Deprecated: ctype_alnum(): Argument of type int will be interpreted as string in the future. 2023-05-24 14:04:19 +08:00
liumengyi 19722a00d1 * Fix error when the arg1 parameter is a number. 2023-05-24 09:59:25 +08:00
liugang 5a296edf82 - baseDAO: convert numbers to strings because the deleted field is declared as an enum type but used as a number type. 2023-05-23 14:36:13 +08:00
liugang a10fdda8b9 * baseDAO: do not convert null values or numbers to strings. 2023-05-23 14:24:56 +08:00
朱金勇 1bd75e6929 * Refactor batchCreate of task. 2023-05-23 03:01:23 +00:00
dingguodong cc4451ca17 * Assign the $sql to $this->sqlobj, so sqlError() can print the full sql statement if any exception occurs. 2023-05-22 16:46:36 +08:00
dingguodong e1a1d43215 * The function lastInsertID() return int|false instead of string|false. 2023-05-11 15:19:34 +08:00
hufangzhou dc8fcc9484 * Merge 18.4 into master. 2023-05-05 09:26:04 +08:00
Lufei c4a5d8a525 + Support debug trace. 2023-04-27 18:48:56 +08:00
dingguodong 28a23d805b + Reset dao::errors before CRUD to prevent from last CRUD disturb new CRUD. 2023-04-27 15:36:59 +08:00
hufangzhou bccd7f677e * Fix bug #34868. 2023-04-26 15:17:11 +08:00
朱金勇 e7cc2b2e5e * Fix sync repo. 2023-04-19 02:10:10 +00:00
朱金勇 2ca80b1aa3 * Fix bug#34346. 2023-04-19 00:53:12 +00:00
朱金勇 3e887438ef * Fix bug#34221. 2023-04-17 09:00:33 +00:00
朱金勇 9fe8e0393c * Fix keywords. 2023-04-17 07:16:46 +00:00
朱金勇 619077d036 * Fix replace method. 2023-04-17 07:04:03 +00:00
朱金勇 7969effc29 * Fix bug#34139, 34238, 34075. 2023-04-16 13:54:16 +00:00
朱金勇 cecf04b069 Fix bug: show tables and desc table. 2023-04-12 16:40:08 +00:00
朱金勇 d20df48faf * Fix primary key of dmdb. 2023-04-11 03:05:50 +00:00
朱金勇 0dde8ad3ed Fix default value of db. 2023-04-10 09:19:01 +00:00
朱金勇 4cf70fdf7e * Fix insert method of dao. 2023-04-05 15:58:43 +00:00
朱金勇 f65d3aa417 * Install for dmdb. 2023-04-01 14:22:24 +00:00
王怡栋 4af7ffbfa9 Merge branch 'sprint/konglinmao_optimize_code2' into 'master'
* Optimize code.

See merge request easycorp/zentaopms!6640
2022-12-27 08:48:41 +00:00
孔令茂 610e22f948 * Optimize code. 2022-12-27 08:45:32 +00:00