mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
git-svn-id: file:///svn/phpbb/trunk@6958 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1026,12 +1026,13 @@ function sql_column_add($dbms, $table_name, $column_name, $column_data)
|
||||
case 'sqlite':
|
||||
if (version_compare(sqlite_libversion(), '3.0') == -1)
|
||||
{
|
||||
global $db;
|
||||
$sql = "SELECT sql
|
||||
FROM sqlite_master
|
||||
WHERE type = 'table'
|
||||
AND name = '{$table_name}'
|
||||
ORDER BY type DESC, name;";
|
||||
$result = _sql($sql, $errored, $error_ary);
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
if (!$result)
|
||||
{
|
||||
|
Reference in New Issue
Block a user