Static Public Member Functions | |
static | getType ($mssqlType) |
This method returns the generic Creole (JDBC-like) type when given the native db type. | |
static | getNativeType ($creoleType) |
This method will return a native type that corresponds to the specified Creole (JDBC-like) type. | |
Static Private Attributes | |
static | $typeMap |
Map PostgreSQL native types to Creole (JDBC) types. | |
static | $reverseMap = null |
Reverse lookup map, created on demand. |
Definition at line 32 of file MSSQLTypes.php.
static MSSQLTypes::getNativeType | ( | $ | creoleType | ) | [static] |
This method will return a native type that corresponds to the specified Creole (JDBC-like) type.
If there is more than one matching native type, then the LAST defined native type will be returned.
Reimplemented from CreoleTypes.
Definition at line 86 of file MSSQLTypes.php.
00087 { 00088 if (self::$reverseMap === null) { 00089 self::$reverseMap = array_flip(self::$typeMap); 00090 } 00091 return @self::$reverseMap[$creoleType]; 00092 }
static MSSQLTypes::getType | ( | $ | nativeType | ) | [static] |
This method returns the generic Creole (JDBC-like) type when given the native db type.
string | $nativeType DB native type (e.g. 'TEXT', 'byetea', etc.). |
Reimplemented from CreoleTypes.
Definition at line 76 of file MSSQLTypes.php.
References CreoleTypes::OTHER.
Referenced by MSSQLTableInfo::initColumns().
00077 { 00078 $t = strtolower($mssqlType); 00079 if (isset(self::$typeMap[$t])) { 00080 return self::$typeMap[$t]; 00081 } else { 00082 return CreoleTypes::OTHER; 00083 } 00084 }
MSSQLTypes::$reverseMap = null [static, private] |
MSSQLTypes::$typeMap [static, private] |