Skip to content

Commit c24ad6c

Browse files
committed
drop collation statements in create, drop charset in create where not text
1 parent fee2f72 commit c24ad6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

driver_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func _string(db *DBTest) {
386386
var rows *sql.Rows
387387

388388
for _, v := range types {
389-
db.mustExec("CREATE TABLE test (value " + v + ") CHARACTER SET utf8 COLLATE utf8_unicode_ci")
389+
db.mustExec("CREATE TABLE test (value " + v + ") CHARACTER SET utf8")
390390

391391
db.mustExec("INSERT INTO test VALUES (?)", in)
392392

@@ -404,7 +404,7 @@ func _string(db *DBTest) {
404404
}
405405

406406
// BLOB
407-
db.mustExec("CREATE TABLE test (id int, value BLOB) CHARACTER SET utf8 COLLATE utf8_unicode_ci")
407+
db.mustExec("CREATE TABLE test (id int, value BLOB) CHARACTER SET utf8")
408408

409409
id := 2
410410
in = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, " +
@@ -503,7 +503,7 @@ func TestDateTime(t *testing.T) {
503503
var rows *sql.Rows
504504
for sqltype, tests := range timetests {
505505
db.mustExec("DROP TABLE IF EXISTS test")
506-
db.mustExec("CREATE TABLE test (value " + sqltype + ") CHARACTER SET utf8 COLLATE utf8_unicode_ci")
506+
db.mustExec("CREATE TABLE test (value " + sqltype + ")")
507507
for _, test := range tests {
508508
for mode, q := range modes {
509509
db.mustExec("TRUNCATE test")
@@ -670,7 +670,7 @@ func _longData(db *DBTest) {
670670
maxAllowedPacketSize = 1 << 25
671671
}
672672

673-
db.mustExec("CREATE TABLE test (value LONGBLOB) CHARACTER SET utf8 COLLATE utf8_unicode_ci")
673+
db.mustExec("CREATE TABLE test (value LONGBLOB)")
674674

675675
in := strings.Repeat(`0`, maxAllowedPacketSize+1)
676676
var out string
@@ -765,7 +765,7 @@ func _loadData(db *DBTest) {
765765
file.Close()
766766

767767
db.mustExec("DROP TABLE IF EXISTS test")
768-
db.mustExec("CREATE TABLE test (id INT NOT NULL PRIMARY KEY, value TEXT NOT NULL) CHARACTER SET utf8 COLLATE utf8_unicode_ci")
768+
db.mustExec("CREATE TABLE test (id INT NOT NULL PRIMARY KEY, value TEXT NOT NULL) CHARACTER SET utf8")
769769

770770
// Local File
771771
RegisterLocalFile(file.Name())

0 commit comments

Comments
 (0)