fixed expected values in pdo tests
This commit is contained in:
parent
199ad557bb
commit
8a512d8e97
|
@ -25,8 +25,6 @@ try
|
|||
create_table( $conn, $tbname, $colMetaArr );
|
||||
|
||||
// prepare statement for inserting into table
|
||||
$insertSql = get_insert_sql( $tbname, 3 );
|
||||
|
||||
foreach ( $pdoParamTypes as $pdoParamType ) {
|
||||
// insert a row
|
||||
$inputValues = array_slice( ${explode( "(", $dataType )[0] . "_params"}, 1, 2 );
|
||||
|
|
|
@ -57,8 +57,8 @@ Testing bit:
|
|||
c_det: 1
|
||||
c_rand: 0
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted bit****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted bit****
|
||||
c_det: 1
|
||||
c_rand: 0
|
||||
|
@ -74,8 +74,8 @@ Testing tinyint:
|
|||
c_det: 0
|
||||
c_rand: 1
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted tinyint****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted tinyint****
|
||||
c_det: 0
|
||||
c_rand: 255
|
||||
|
@ -91,8 +91,8 @@ Testing smallint:
|
|||
c_det: 1
|
||||
c_rand: 1
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted smallint****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted smallint****
|
||||
c_det: -32767
|
||||
c_rand: 32767
|
||||
|
@ -108,8 +108,8 @@ Testing int:
|
|||
c_det: 1
|
||||
c_rand: 1
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted int****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted int****
|
||||
c_det: -2147483647
|
||||
c_rand: 2147483647
|
||||
|
@ -125,8 +125,8 @@ Testing decimal(18,5):
|
|||
c_det: -9223372036854.80078
|
||||
c_rand: 9223372036854.80078
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted decimal(18,5)****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted decimal(18,5)****
|
||||
c_det: -9223372036854.80078
|
||||
c_rand: 9223372036854.80078
|
||||
|
@ -142,8 +142,8 @@ Testing numeric(10,5):
|
|||
c_det: -21474.83647
|
||||
c_rand: 21474.83647
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted numeric(10,5)****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted numeric(10,5)****
|
||||
c_det: -21474.83647
|
||||
c_rand: 21474.83647
|
||||
|
@ -159,8 +159,8 @@ Testing float:
|
|||
c_det: -9223372036.8547993
|
||||
c_rand: 9223372036.8547993
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted float****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted float****
|
||||
c_det: -9223372036.8547993
|
||||
c_rand: 9223372036.8547993
|
||||
|
@ -176,8 +176,8 @@ Testing real:
|
|||
c_det: -2147.4829
|
||||
c_rand: 2147.4829
|
||||
****PDO param type PDO::PARAM_NULL is compatible with encrypted real****
|
||||
c_det:
|
||||
c_rand:
|
||||
c_det:
|
||||
c_rand:
|
||||
****PDO param type PDO::PARAM_INT is compatible with encrypted real****
|
||||
c_det: -2147.4829
|
||||
c_rand: 2147.4829
|
||||
|
|
|
@ -25,8 +25,6 @@ try
|
|||
create_table( $conn, $tbname, $colMetaArr );
|
||||
|
||||
// prepare statement for inserting into table
|
||||
$insertSql = get_insert_sql( $tbname, 3 );
|
||||
|
||||
foreach ( $pdoParamTypes as $pdoParamType ) {
|
||||
// insert a row
|
||||
$inputValues = array_slice( ${explode( "(", $dataType )[0] . "_params"}, 1, 2 );
|
||||
|
|
|
@ -146,22 +146,22 @@ unset( $stmt );
|
|||
unset( $conn );
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTREGEX--
|
||||
intOut: 2147483647
|
||||
smallintOut: 32767
|
||||
tinyintOut: 255
|
||||
bitOut: 1
|
||||
bigintOut: 922337203685479936
|
||||
decimalOut: 9223372036854.80000
|
||||
numericOut: 21474.83647
|
||||
floatOut: 9223372036.8547993
|
||||
realOut: 2147.4829
|
||||
decimalOut: 9223372036854\.80000
|
||||
numericOut: 21474\.83647
|
||||
floatOut: (9223372036\.8547993|9\.22337e\+009)
|
||||
realOut: (2147\.4829|2147\.48)
|
||||
dateOut: 9999-12-31
|
||||
datetimeOut: 9999-12-31 23:59:59.997
|
||||
datetime2Out: 9999-12-31 23:59:59.9999999
|
||||
datetimeoffsetOut: 9999-12-31 23:59:59.9999999 +14:00
|
||||
timeOut: 23:59:59.9999999
|
||||
charOut: th, n
|
||||
varcharOut: This large row size can cause errors (such as error 512) during some normal operations, such as a clustered index key update, or sorts of the full column set, which users cannot anticipate until performing an operation.
|
||||
datetimeOut: 9999-12-31 23:59:59\.997
|
||||
datetime2Out: 9999-12-31 23:59:59\.9999999
|
||||
datetimeoffsetOut: 9999-12-31 23:59:59\.9999999 \+14:00
|
||||
timeOut: 23:59:59\.9999999
|
||||
charOut: th\, n
|
||||
varcharOut: This large row size can cause errors \(such as error 512\) during some normal operations\, such as a clustered index key update\, or sorts of the full column set\, which users cannot anticipate until performing an operation\.
|
||||
ncharOut: th Un
|
||||
nvarcharOut: When prefixing a string constant with the letter N, the implicit conversion will result in a Unicode string if the constant to convert does not exceed the max length for a Unicode string data type (4,000).
|
||||
nvarcharOut: When prefixing a string constant with the letter N\, the implicit conversion will result in a Unicode string if the constant to convert does not exceed the max length for a Unicode string data type \(4,000\).
|
Loading…
Reference in a new issue