@@ 623-625 (lines=3) @@ | ||
620 | if ( is_integer( $key ) ) { |
|
621 | if ( is_null( $value ) ) { |
|
622 | $statement->bindValue( $key + 1, NULL, \PDO::PARAM_NULL ); |
|
623 | } elseif ( !$this->flagUseStringOnlyBinding && AQueryWriter::canBeTreatedAsInt( $value ) && abs( $value ) <= $this->max ) { |
|
624 | $statement->bindParam( $key + 1, $value, \PDO::PARAM_INT ); |
|
625 | } else { |
|
626 | $statement->bindParam( $key + 1, $value, \PDO::PARAM_STR ); |
|
627 | } |
|
628 | } else { |
|
@@ 631-633 (lines=3) @@ | ||
628 | } else { |
|
629 | if ( is_null( $value ) ) { |
|
630 | $statement->bindValue( $key, NULL, \PDO::PARAM_NULL ); |
|
631 | } elseif ( !$this->flagUseStringOnlyBinding && AQueryWriter::canBeTreatedAsInt( $value ) && abs( $value ) <= $this->max ) { |
|
632 | $statement->bindParam( $key, $value, \PDO::PARAM_INT ); |
|
633 | } else { |
|
634 | $statement->bindParam( $key, $value, \PDO::PARAM_STR ); |
|
635 | } |
|
636 | } |