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 8d6d326 commit 140b805Copy full SHA for 140b805
sqlite3_test.go
@@ -1593,6 +1593,10 @@ func TestInsertNilByteSlice(t *testing.T) {
1593
if _, err := db.Exec("insert into blob_not_null (b) values (?)", nilSlice); err == nil {
1594
t.Fatal("didn't expect INSERT to 'not null' column with a nil []byte slice to work")
1595
}
1596
+ zeroLenSlice := []byte{}
1597
+ if _, err := db.Exec("insert into blob_not_null (b) values (?)", zeroLenSlice); err != nil {
1598
+ t.Fatal("failed to insert zero-length slice")
1599
+ }
1600
1601
1602
var customFunctionOnce sync.Once
0 commit comments