@@ 6065-6073 (lines=9) @@ | ||
6062 | /** |
|
6063 | * @see QueryWriter::sqlStateIn |
|
6064 | */ |
|
6065 | public function sqlStateIn( $state, $list ) |
|
6066 | { |
|
6067 | $stateMap = array( |
|
6068 | 'HY000' => QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, |
|
6069 | '23000' => QueryWriter::C_SQLSTATE_INTEGRITY_CONSTRAINT_VIOLATION |
|
6070 | ); |
|
6071 | ||
6072 | return in_array( ( isset( $stateMap[$state] ) ? $stateMap[$state] : '0' ), $list ); |
|
6073 | } |
|
6074 | ||
6075 | /** |
|
6076 | * @see QueryWriter::addIndex |
|
@@ 6445-6454 (lines=10) @@ | ||
6442 | /** |
|
6443 | * @see QueryWriter::sqlStateIn |
|
6444 | */ |
|
6445 | public function sqlStateIn( $state, $list ) |
|
6446 | { |
|
6447 | $stateMap = array( |
|
6448 | '42P01' => QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, |
|
6449 | '42703' => QueryWriter::C_SQLSTATE_NO_SUCH_COLUMN, |
|
6450 | '23505' => QueryWriter::C_SQLSTATE_INTEGRITY_CONSTRAINT_VIOLATION |
|
6451 | ); |
|
6452 | ||
6453 | return in_array( ( isset( $stateMap[$state] ) ? $stateMap[$state] : '0' ), $list ); |
|
6454 | } |
|
6455 | ||
6456 | /** |
|
6457 | * @see QueryWriter::addIndex |