phpBB

Code Changes

File: phpbb/db/extractor/postgres_extractor.php

  Unmodified   Added   Modified   Removed
Line 85Line 85
		// We don't even care about storing the results. We already know the answer if we get rows back.
if ($this->db->sql_fetchrow($result))
{

		// We don't even care about storing the results. We already know the answer if we get rows back.
if ($this->db->sql_fetchrow($result))
{

			$sql_data .= "DROP SEQUENCE {$table_name}_seq;\n";

			$sql_data .= "DROP SEQUENCE IF EXISTS {$table_name}_seq;\n";

			$sql_data .= "CREATE SEQUENCE {$table_name}_seq;\n";
}
$this->db->sql_freeresult($result);

			$sql_data .= "CREATE SEQUENCE {$table_name}_seq;\n";
}
$this->db->sql_freeresult($result);