1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

MSSQL works properly with SQL update related tools

git-svn-id: file:///svn/phpbb/trunk@8198 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2007-10-16 14:59:39 +00:00
parent 83251720de
commit aee82d3a30
3 changed files with 8 additions and 2 deletions

View File

@@ -1759,7 +1759,7 @@ function column_exists($dbms, $table, $column_name)
case 'mssql':
$sql = "SELECT c.name
FROM syscolumns c
LEFT JOIN sysobjects o (ON c.id = o.id)
LEFT JOIN sysobjects o ON c.id = o.id
WHERE o.name = '{$table}'";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))