diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-12 09:53:45 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-17 11:29:42 +0200 |
commit | 29ba06968d383dd63a869345352117d7ed82497b (patch) | |
tree | 78fe05d64d3377ab1b70b28232e90551f563edba /phpBB | |
parent | 743d816631292a2081af4c5f7fc2fad2aff17c58 (diff) | |
download | forums-29ba06968d383dd63a869345352117d7ed82497b.tar forums-29ba06968d383dd63a869345352117d7ed82497b.tar.gz forums-29ba06968d383dd63a869345352117d7ed82497b.tar.bz2 forums-29ba06968d383dd63a869345352117d7ed82497b.tar.xz forums-29ba06968d383dd63a869345352117d7ed82497b.zip |
[ticket/12012] Fix query layout
PHPBB3-12012
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/db/tools.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 87c205c6c0..a746099a14 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -2493,7 +2493,8 @@ class tools { // http://msdn.microsoft.com/en-us/library/aa175912%28v=sql.80%29.aspx // Deprecated in SQL Server 2005 - $sql = "SELECT so.name AS def_name FROM sysobjects so + $sql = "SELECT so.name AS def_name + FROM sysobjects so JOIN sysconstraints sc ON so.id = sc.constid WHERE object_name(so.parent_obj) = '{$table_name}' AND so.xtype = 'D' |