Closed SlavaAurim closed 2 years ago
This line throws exception: https://github.com/nette/database/blob/568b7c98608c3883d78a349bf016c41fb8f10dfb/src/Database/Drivers/SqliteDriver.php#L211
...because my sqlite (in php 8) return NULL in column 'to' in results from PRAGMA foreign_key_list(tablename) Another columns has correct data.
PRAGMA foreign_key_list(tablename)
This is simple fix:
if ($keys[$row['id']]['foreign'] //<== check if equal null && $keys[$row['id']]['foreign'][0] == null) { $keys[$row['id']]['foreign'] = null; }
This line throws exception: https://github.com/nette/database/blob/568b7c98608c3883d78a349bf016c41fb8f10dfb/src/Database/Drivers/SqliteDriver.php#L211
...because my sqlite (in php 8) return NULL in column 'to' in results from
PRAGMA foreign_key_list(tablename)
Another columns has correct data.This is simple fix: