1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add test case to e_expr.test.

FossilOrigin-Name: db9539f2ceabd3c5a3eb5d4701f80f4e7da9344d
This commit is contained in:
dan
2010-08-14 18:32:23 +00:00
parent 8fb8b53728
commit 1afca9b74a
3 changed files with 22 additions and 18 deletions

View File

@ -600,4 +600,18 @@ foreach {tn sql} [list \
do_catchsql_test e_expr-11.7.$tn $sql [list 1 {too many SQL variables}]
}
# EVIDENCE-OF: R-14068-49671 Parameters that are not assigned values
# using sqlite3_bind() are treated as NULL.
#
do_test e_expr-11.7.1 {
set stmt [sqlite3_prepare_v2 db { SELECT ?, :a, @b, $d } -1]
sqlite3_step $stmt
list [sqlite3_column_type $stmt 0] \
[sqlite3_column_type $stmt 1] \
[sqlite3_column_type $stmt 2] \
[sqlite3_column_type $stmt 3]
} {NULL NULL NULL NULL}
do_test e_expr-11.7.1 { sqlite3_finalize $stmt } SQLITE_OK
finish_test