Commit 7c607295 authored by gwenn's avatar gwenn

Try to understand travis test failure.

parent 3707aecc
......@@ -180,7 +180,7 @@ func (s *Stmt) Insert(args ...interface{}) (int64, error) {
if n == 0 { // No change => no insert...
return -1, nil
}
return s.c.LastInsertRowid(), nil
return s.c.LastInsertRowid(), nil // TODO what happens with INSERT OR IGNORE ...
}
// Select helps executing SELECT statement:
......@@ -367,6 +367,7 @@ func (s *Stmt) BindByIndex(index int, value interface{}) error {
if err != nil {
return err
}
fmt.Printf("BindByIndex: %s\n", v)
return s.BindByIndex(index, v)
default:
return s.BindReflect(index, value)
......@@ -568,7 +569,7 @@ func (s *Stmt) Scan(args ...interface{}) error {
// (See http://sqlite.org/c3ref/sql.html)
func (s *Stmt) SQL() string {
if s.sql == "" {
s.sql = C.GoString(C.sqlite3_sql(s.stmt))
s.sql = C.GoString(C.sqlite3_sql(s.stmt)) // TODO How to avoid copy?
}
return s.sql
}
......@@ -988,6 +989,7 @@ func (s *Stmt) ScanTime(index int) (value time.Time, isNull bool, err error) {
layout = "2006-01-02 15:04:05.999Z07:00"
}
}
fmt.Printf("ScanTime: %s\n", txt)
value, err = time.Parse(layout, txt) // UTC except when timezone is specified
case Integer:
unixepoch := int64(C.sqlite3_column_int64(s.stmt, C.int(index)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment