diff options
| author | Damien Regad <dregad@mantisbt.org> | 2025-07-20 17:37:42 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2025-08-03 18:05:05 +0200 |
| commit | 5fe4fc8e5c6cd1e202d540203106f483f3aa45c2 (patch) | |
| tree | f208a3fb5880121ebd03a700f8566e641b994307 | |
| parent | e361aa9633532aa8af5d56b789dbb3994ac89dcc (diff) | |
| download | adodb-5fe4fc8e5c6cd1e202d540203106f483f3aa45c2.tar.gz adodb-5fe4fc8e5c6cd1e202d540203106f483f3aa45c2.tar.bz2 adodb-5fe4fc8e5c6cd1e202d540203106f483f3aa45c2.zip | |
Ignore case when matching FOREIGN keyword
Fixes metaForeignKeys() method returning nothing when FOREIGN keyword
was not given in upper case.
Fixes #1078
| -rw-r--r-- | drivers/adodb-sqlite3.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php index 68709bbb..171a6c76 100644 --- a/drivers/adodb-sqlite3.inc.php +++ b/drivers/adodb-sqlite3.inc.php @@ -226,7 +226,7 @@ class ADODB_sqlite3 extends ADOConnection { $fkeyList = array(); $ylist = preg_split("/,+/", $tableSql); foreach ($ylist as $y) { - if (!preg_match('/FOREIGN/', $y)) { + if (!preg_match('/FOREIGN/i', $y)) { continue; } |
