Unicode tests.

This commit is contained in:
Nuno Cruces
2023-07-13 11:07:54 +01:00
parent ff0cb6fb88
commit 6ef422fbde
4 changed files with 91 additions and 46 deletions

View File

@@ -14,6 +14,7 @@ func ExampleConn_CreateWindowFunction() {
if err != nil {
log.Fatal(err)
}
defer db.Close()
err = db.Exec(`CREATE TABLE IF NOT EXISTS words (word VARCHAR(10))`)
if err != nil {
@@ -42,16 +43,6 @@ func ExampleConn_CreateWindowFunction() {
if err := stmt.Err(); err != nil {
log.Fatal(err)
}
err = stmt.Close()
if err != nil {
log.Fatal(err)
}
err = db.Close()
if err != nil {
log.Fatal(err)
}
// Output:
// 1
// 2