This commit is contained in:
Yasuhiro Matsumoto 2015-03-05 12:39:44 +09:00
parent d463e8f1f9
commit f40baee643
1 changed files with 3 additions and 3 deletions

View File

@ -845,7 +845,7 @@ func TestStress(t *testing.T) {
func TestDateTimeLocal(t *testing.T) { func TestDateTimeLocal(t *testing.T) {
zone := "Asia/Tokyo" zone := "Asia/Tokyo"
tempFilename := TempFilename() tempFilename := TempFilename()
db, err := sql.Open("sqlite3", "file:///"+tempFilename+"?loc="+zone) db, err := sql.Open("sqlite3", tempFilename+"?loc="+zone)
if err != nil { if err != nil {
t.Fatal("Failed to open database:", err) t.Fatal("Failed to open database:", err)
} }
@ -863,7 +863,7 @@ func TestDateTimeLocal(t *testing.T) {
} }
db.Close() db.Close()
db, err = sql.Open("sqlite3", "file:///"+tempFilename) db, err = sql.Open("sqlite3", tempFilename)
if err != nil { if err != nil {
t.Fatal("Failed to open database:", err) t.Fatal("Failed to open database:", err)
} }
@ -888,7 +888,7 @@ func TestDateTimeLocal(t *testing.T) {
db.Exec("INSERT INTO foo VALUES(?);", dt) db.Exec("INSERT INTO foo VALUES(?);", dt)
db.Close() db.Close()
db, err = sql.Open("sqlite3", "file:///"+tempFilename+"?loc="+zone) db, err = sql.Open("sqlite3", tempFilename+"?loc="+zone)
if err != nil { if err != nil {
t.Fatal("Failed to open database:", err) t.Fatal("Failed to open database:", err)
} }