|
@@ 1283-1294 (lines=12) @@
|
| 1280 |
|
* @param string $table |
| 1281 |
|
* @return array |
| 1282 |
|
*/ |
| 1283 |
|
private function getBinaryColumns( $table ) { |
| 1284 |
|
$tableRawArr = explode( '.', preg_replace( '#\[([^\]]*)\]#', '$1', $table ) ); |
| 1285 |
|
$tableRaw = array_pop( $tableRawArr ); |
| 1286 |
|
|
| 1287 |
|
if ( $this->mBinaryColumnCache === null ) { |
| 1288 |
|
$this->populateColumnCaches(); |
| 1289 |
|
} |
| 1290 |
|
|
| 1291 |
|
return isset( $this->mBinaryColumnCache[$tableRaw] ) |
| 1292 |
|
? $this->mBinaryColumnCache[$tableRaw] |
| 1293 |
|
: []; |
| 1294 |
|
} |
| 1295 |
|
|
| 1296 |
|
/** |
| 1297 |
|
* @param string $table |
|
@@ 1300-1311 (lines=12) @@
|
| 1297 |
|
* @param string $table |
| 1298 |
|
* @return array |
| 1299 |
|
*/ |
| 1300 |
|
private function getBitColumns( $table ) { |
| 1301 |
|
$tableRawArr = explode( '.', preg_replace( '#\[([^\]]*)\]#', '$1', $table ) ); |
| 1302 |
|
$tableRaw = array_pop( $tableRawArr ); |
| 1303 |
|
|
| 1304 |
|
if ( $this->mBitColumnCache === null ) { |
| 1305 |
|
$this->populateColumnCaches(); |
| 1306 |
|
} |
| 1307 |
|
|
| 1308 |
|
return isset( $this->mBitColumnCache[$tableRaw] ) |
| 1309 |
|
? $this->mBitColumnCache[$tableRaw] |
| 1310 |
|
: []; |
| 1311 |
|
} |
| 1312 |
|
|
| 1313 |
|
private function populateColumnCaches() { |
| 1314 |
|
$res = $this->select( 'INFORMATION_SCHEMA.COLUMNS', '*', |