Skip to content

Commit d58a709

Browse files
committed
cleanup
1 parent 59d0d57 commit d58a709

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

driver_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -1289,9 +1289,7 @@ func TestLongData(t *testing.T) {
12891289
var rows *sql.Rows
12901290

12911291
// Long text data
1292-
// const nonDataQueryLen = 28 // length query w/o value + compress header
1293-
const nonDataQueryLen = 100
1294-
inS := in[:maxAllowedPacketSize-nonDataQueryLen]
1292+
inS := in[:maxAllowedPacketSize-100]
12951293
dbt.mustExec("INSERT INTO test VALUES('" + inS + "')")
12961294
rows = dbt.mustQuery("SELECT value FROM test")
12971295
defer rows.Close()

0 commit comments

Comments
 (0)