mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
Merge pull request #6493 from rxu/ticket/17148
[ticket/17148] Fix sql_table_exists() error for PostgreSQL 9.3 and earlier - 3.3.x
This commit is contained in:
@@ -102,7 +102,7 @@ class postgres extends tools
|
||||
function sql_table_exists($table_name)
|
||||
{
|
||||
$sql = "SELECT CAST(EXISTS(
|
||||
SELECT FROM information_schema.tables
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE table_schema = 'public'
|
||||
AND table_name = '" . $this->db->sql_escape($table_name) . "'
|
||||
) AS INTEGER)";
|
||||
|
Reference in New Issue
Block a user