We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df19570 commit 807cb45Copy full SHA for 807cb45
stiller-backend/internal/dbutils/utils.go
@@ -63,8 +63,15 @@ func PushNewFile(fileptr *StillerFile) (int, error) {
63
query := query_stmt.String()
64
query_id_res := int(-1)
65
66
+ log.Println(query_stmt.String())
67
+ log.Println(query_stmt.Args()...)
68
exec_err := sqlitex.ExecuteTransient(new_dbconn, query, &sqlitex.ExecOptions{
69
ResultFunc: func(stmt *sqlite.Stmt) error {
70
+ if stmt.ColumnType(0) == sqlite.TypeText {
71
+ log.Println(stmt.ColumnText(0))
72
+ return errors.New("pushfile error")
73
+ }
74
+
75
query_id_res = int(stmt.ColumnInt64(0))
76
return nil
77
},
0 commit comments