Commit graph

25 commits

Author SHA1 Message Date
Kijin Sung
653ca4f697 Add "TABLE" to list of keywords to recognize in addPrefixes() 2025-09-30 22:27:36 +09:00
Kijin Sung
64ca8e775a Fix incorrect prefixing when CTE has an alias #2587 2025-07-23 01:07:25 +09:00
Kijin Sung
393c847cee Fix first line of backtrace missing in query error display 2025-07-22 21:54:22 +09:00
Kijin Sung
796ecec247 Fix incorrect prefixing of CTE names and ON DUPLICATE KEY UPDATE ... #2587 2025-07-21 00:57:47 +09:00
Kijin Sung
f99102ca33 Clean up handling of table schemas that are marked as deleted in XML 2025-05-23 15:31:02 +09:00
Kijin Sung
fd0491cb0d Reorder return values of VariableBase::getValue() so that the value can be quickly accessed 2025-02-15 22:25:25 +09:00
Kijin Sung
d6dca30e0f Emit warning if an XML query returns 10000+ rows, probably because of missing condition 2024-12-13 01:20:45 +09:00
Kijin Sung
8540140f51 Fix missing debug info when COUNT(*) query fails 2024-10-08 17:36:23 +09:00
Kijin Sung
f16da70c64 Add DB::getIndexInfo() 2023-12-31 00:16:43 +09:00
Kijin Sung
0da9244e33 Clarify return types of DB::prepare() and DB::query() 2023-09-27 23:33:06 +09:00
Kijin Sung
34922b0d46 Show warning when custom query is executed using unsafe methods like _query() and _fetch() 2023-09-27 15:51:46 +09:00
Kijin Sung
4cf8fc6eb5 Be a little more lenient on invalid querystrings passed to deprecated method 2023-09-27 15:45:45 +09:00
Kijin Sung
9ca2c94fe4 Fix #2186 type error when unexpected values are passed to columnList 2023-09-26 20:08:08 +09:00
Kijin Sung
a1537bafe3 Fix incorrect or missing type declarations in Cache and DB classes 2023-09-26 11:09:55 +09:00
Kijin Sung
dc492345da Fix custom query caller location being shown as DB.php in debug info 2023-08-27 22:57:56 +09:00
Kijin Sung
59113fc385 Mark DB->getHandle() as nullable, and update related methods 2023-06-19 15:22:06 +09:00
Kijin Sung
840617eece Mark _query() and _fetch() as deprecated 2023-06-19 15:19:03 +09:00
Kijin Sung
66e1b93b78 Add explicit connect() and disconnect() methods to DB class 2023-06-19 15:00:39 +09:00
Kijin Sung
28bc991048 Replace some rarely used DB class properties with __get() magic method 2023-04-30 22:50:07 +09:00
Kijin Sung
749037249c Add DB->beginTransaction() as an alias to begin() 2023-04-30 22:38:40 +09:00
Kijin Sung
5ecf8ea99b Fix warning when query is executed from outside of a class or function 2023-02-06 01:57:18 +09:00
Kijin Sung
a9f72a5cd2 Remove trailing whitespace 2023-01-17 20:57:44 +09:00
Kijin Sung
8eb387de3c Fix autoloader not working for DBStmtHelper in PHP 7.x
SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args));
2023-01-16 21:57:01 +09:00
Kijin Sung
7688c8fb38 Merge branch 'master' into develop 2023-01-03 14:01:34 +09:00
Kijin Sung
0029d1a1ec Rename all common/framework source files to be case-sensitive 2022-12-26 16:13:09 +09:00
Renamed from common/framework/db.php (Browse further)