mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/10748] Overwrite the type map correctly
PHPBB3-10748
This commit is contained in:
@@ -117,6 +117,8 @@ class mssql extends tools
|
|||||||
$this->sql_layer = 'mssqlnative';
|
$this->sql_layer = 'mssqlnative';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->dbms_type_map = self::get_dbms_type_map();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -344,7 +346,7 @@ class mssql extends tools
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get type
|
// Get type
|
||||||
list($column_type, $orig_column_type) = $this->get_column_type($column_data[0]);
|
list($column_type, ) = $this->get_column_type($column_data[0]);
|
||||||
|
|
||||||
// Adjust default value if db-dependent specified
|
// Adjust default value if db-dependent specified
|
||||||
if (is_array($column_data[1]))
|
if (is_array($column_data[1]))
|
||||||
|
@@ -1354,6 +1354,7 @@ class tools implements tools_interface
|
|||||||
*/
|
*/
|
||||||
function get_column_type($column_map_type)
|
function get_column_type($column_map_type)
|
||||||
{
|
{
|
||||||
|
$column_type = '';
|
||||||
if (strpos($column_map_type, ':') !== false)
|
if (strpos($column_map_type, ':') !== false)
|
||||||
{
|
{
|
||||||
list($orig_column_type, $column_length) = explode(':', $column_map_type);
|
list($orig_column_type, $column_length) = explode(':', $column_map_type);
|
||||||
|
Reference in New Issue
Block a user