summaryrefslogtreecommitdiff
path: root/adodb-errorhandler.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2025-07-21 00:55:27 +0200
committerDamien Regad <dregad@mantisbt.org>2025-08-03 18:05:05 +0200
commitbe6033941f6fbe1f4058b669fd0e6462bb627a36 (patch)
tree67c6fd7ae7b04e4b74cf07d39fd920d5df8a72c4 /adodb-errorhandler.inc.php
parent5fe4fc8e5c6cd1e202d540203106f483f3aa45c2 (diff)
downloadadodb-be6033941f6fbe1f4058b669fd0e6462bb627a36.tar.gz
adodb-be6033941f6fbe1f4058b669fd0e6462bb627a36.tar.bz2
adodb-be6033941f6fbe1f4058b669fd0e6462bb627a36.zip
Refactor metaForeignKeys() method
Use a single, more advanced regex to parse the table SQL, allowing identification of foreign key definitions with a single pass, instead of several preg_split/preg_match calls. The new regex recognizes both column and table constraints, and allows composite keys too. Case conversion (when $upper parameter is true) is performed within the foreach loop that builds the return array, instead of calling array_change_key_case() at the end. Fixes #1078, #1079, #1080
Diffstat (limited to 'adodb-errorhandler.inc.php')
0 files changed, 0 insertions, 0 deletions