We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95ecaa commit 830d66eCopy full SHA for 830d66e
driver_test.go
@@ -517,6 +517,15 @@ func TestNULL(t *testing.T) {
517
if b == nil {
518
dbt.Error("Nil []byte wich should be non-nil")
519
}
520
+ // Insert nil
521
+ b = nil
522
+ success := false
523
+ if err = dbt.db.QueryRow("SELECT ? IS NULL", b).Scan(&success); err != nil {
524
+ dbt.Fatal(err)
525
+ }
526
+ if !success {
527
+ dbt.Error("Inserting []byte(nil) as NULL failed")
528
529
// Check input==output (==nil)
530
b = nil
531
if err = dbt.db.QueryRow("SELECT ?", nil).Scan(&b); err != nil {
0 commit comments