phpBB

Code Changes

File: phpbb/db/tools/postgres.php

  Unmodified   Added   Modified   Removed
Line 102Line 102
	function sql_table_exists($table_name)
{
$sql = "SELECT CAST(EXISTS(

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

				WHERE table_schema = 'public'
AND table_name = '" . $this->db->sql_escape($table_name) . "'
) AS INTEGER)";