git-svn-id: file:///svn/phpbb/trunk@6958 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-02-02 23:07:28 +00:00
parent bad991ee82
commit 6e4f7aee05

View file

@ -1026,12 +1026,13 @@ function sql_column_add($dbms, $table_name, $column_name, $column_data)
case 'sqlite': case 'sqlite':
if (version_compare(sqlite_libversion(), '3.0') == -1) if (version_compare(sqlite_libversion(), '3.0') == -1)
{ {
global $db;
$sql = "SELECT sql $sql = "SELECT sql
FROM sqlite_master FROM sqlite_master
WHERE type = 'table' WHERE type = 'table'
AND name = '{$table_name}' AND name = '{$table_name}'
ORDER BY type DESC, name;"; ORDER BY type DESC, name;";
$result = _sql($sql, $errored, $error_ary); $result = $db->sql_query($sql);
if (!$result) if (!$result)
{ {