You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am trying to setup a test server and cannot launch frontend executable.
I get the following error
Database driver mysql
panic: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"user" WHERE id = ?' at line 1
Could you please try to change the escaped double-quotes for back ticks, i.e.
db.Prepare("SELECT id, uuid, name, email, password, hint FROM "user" WHERE id = ?")
becomes
db.Prepare("SELECT id, uuid, name, email, password, hint FROM user WHERE id = ?")
You'll have to do that in the whole webuser.go file (this is the only file which is using "user").
Please advise if it works, we'll update the codebase then.
Note: The next major version of the codebase will use an ORM (GORM) which will make it easier to adopt any SQL database.
llemeurfr
changed the title
Frontend cannot start
MariaDB issue (was Frontend cannot start)
Dec 30, 2023
Hi. I am trying to setup a test server and cannot launch frontend executable.
I get the following error
Database driver mysql
panic: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"user" WHERE id = ?' at line 1
goroutine 1 [running]:
main.main()
/home/user/go/pkg/mod/github.com/readium/[email protected]/frontend/frontend.go:78 +0xaa9
The text was updated successfully, but these errors were encountered: