File: phpbb/db/tools/postgres.php
Unmodified
Added
Modified
Removed
Line 102 | Line 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)";
|
Line 147 | Line 147 |
---|
if (isset($prepared_column['auto_increment']) && $prepared_column['auto_increment'] && strlen($column_name) > 26) // "${column_name}_gen" {
|
if (isset($prepared_column['auto_increment']) && $prepared_column['auto_increment'] && strlen($column_name) > 26) // "${column_name}_gen" {
|
trigger_error("Index name '${column_name}_gen' on table '$table_name' is too long. The maximum auto increment column length is 26 characters.", E_USER_ERROR);
| trigger_error("Index name '{$column_name}_gen' on table '$table_name' is too long. The maximum auto increment column length is 26 characters.", E_USER_ERROR);
|
}
// here we add the definition of the new column to the list of columns
| }
// here we add the definition of the new column to the list of columns
|