|
@@ 1254-1265 (lines=12) @@
|
| 1251 |
|
* @param string $table |
| 1252 |
|
* @return array |
| 1253 |
|
*/ |
| 1254 |
|
private function getBinaryColumns( $table ) { |
| 1255 |
|
$tableRawArr = explode( '.', preg_replace( '#\[([^\]]*)\]#', '$1', $table ) ); |
| 1256 |
|
$tableRaw = array_pop( $tableRawArr ); |
| 1257 |
|
|
| 1258 |
|
if ( $this->mBinaryColumnCache === null ) { |
| 1259 |
|
$this->populateColumnCaches(); |
| 1260 |
|
} |
| 1261 |
|
|
| 1262 |
|
return isset( $this->mBinaryColumnCache[$tableRaw] ) |
| 1263 |
|
? $this->mBinaryColumnCache[$tableRaw] |
| 1264 |
|
: []; |
| 1265 |
|
} |
| 1266 |
|
|
| 1267 |
|
/** |
| 1268 |
|
* @param string $table |
|
@@ 1271-1282 (lines=12) @@
|
| 1268 |
|
* @param string $table |
| 1269 |
|
* @return array |
| 1270 |
|
*/ |
| 1271 |
|
private function getBitColumns( $table ) { |
| 1272 |
|
$tableRawArr = explode( '.', preg_replace( '#\[([^\]]*)\]#', '$1', $table ) ); |
| 1273 |
|
$tableRaw = array_pop( $tableRawArr ); |
| 1274 |
|
|
| 1275 |
|
if ( $this->mBitColumnCache === null ) { |
| 1276 |
|
$this->populateColumnCaches(); |
| 1277 |
|
} |
| 1278 |
|
|
| 1279 |
|
return isset( $this->mBitColumnCache[$tableRaw] ) |
| 1280 |
|
? $this->mBitColumnCache[$tableRaw] |
| 1281 |
|
: []; |
| 1282 |
|
} |
| 1283 |
|
|
| 1284 |
|
private function populateColumnCaches() { |
| 1285 |
|
$res = $this->select( 'INFORMATION_SCHEMA.COLUMNS', '*', |