1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 15:27:42 +02:00

Merge remote-tracking branch 'EXreaction/ticket/11755' into develop

This commit is contained in:
David King
2013-09-02 16:12:30 -07:00
4 changed files with 1447 additions and 2777 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -37,7 +37,16 @@ class phpbb_db_tools
* The Column types for every database we support
* @var array
*/
var $dbms_type_map = array(
var $dbms_type_map = array();
/**
* Get the column types for every database we support
*
* @return array
*/
public static function get_dbms_type_map()
{
return array(
'mysql_41' => array(
'INT:' => 'int(%d)',
'BINT' => 'bigint(20)',
@@ -278,6 +287,7 @@ class phpbb_db_tools
'VARBINARY' => 'bytea',
),
);
}
/**
* A list of types being unsigned for better reference in some db's
@@ -308,6 +318,8 @@ class phpbb_db_tools
$this->db = $db;
$this->return_statements = $return_statements;
$this->dbms_type_map = self::get_dbms_type_map();
// Determine mapping database type
switch ($this->db->sql_layer)
{