1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +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

@@ -78,6 +78,12 @@
<div class="content">
<a name="v30rc6"></a><h3>1.i. Changes since 3.0.RC7</h3>
<ul>
<li>[Fix] Fixed MSSQL related bug in the update system</li>
</ul>
<a name="v30rc6"></a><h3>1.i. Changes since 3.0.RC6</h3>
<ul>

View File

@@ -500,7 +500,7 @@ class phpbb_db_tools
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 = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))

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))