{"action":"created","issue":{"url":"https://api.github.com/repos/bvinc/go-sqlite-lite/issues/9","repository_url":"https://api.github.com/repos/bvinc/go-sqlite-lite","labels_url":"https://api.github.com/repos/bvinc/go-sqlite-lite/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/bvinc/go-sqlite-lite/issues/9/comments","events_url":"https://api.github.com/repos/bvinc/go-sqlite-lite/issues/9/events","html_url":"https://github.com/bvinc/go-sqlite-lite/issues/9","id":373363781,"node_id":"MDU6SXNzdWUzNzMzNjM3ODE=","number":9,"title":"Can I get more specific errors?","user":{"login":"slaskis","id":5991,"node_id":"MDQ6VXNlcjU5OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/5991?v=4","gravatar_id":"","url":"https://api.github.com/users/slaskis","html_url":"https://github.com/slaskis","followers_url":"https://api.github.com/users/slaskis/followers","following_url":"https://api.github.com/users/slaskis/following{/other_user}","gists_url":"https://api.github.com/users/slaskis/gists{/gist_id}","starred_url":"https://api.github.com/users/slaskis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaskis/subscriptions","organizations_url":"https://api.github.com/users/slaskis/orgs","repos_url":"https://api.github.com/users/slaskis/repos","events_url":"https://api.github.com/users/slaskis/events{/privacy}","received_events_url":"https://api.github.com/users/slaskis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-24T08:29:54Z","updated_at":"2018-10-30T16:06:25Z","closed_at":null,"author_association":"NONE","body":"I've been playing around with this brilliant library for a bit and while its really easy to use I've found it hard to troubleshoot because pretty much every error I get is the very generic `sqlite3: SQL logic error [1]` no matter if its an invalid query or something else. \r\n\r\nIs it possible to get more specific errors? It seems to me that sqlite is able to give more helpful error messages (like in [this stack overflow question](https://stackoverflow.com/questions/47630571/sqlite-sql-logic-error-or-missing-database-near-on-syntax-error)).\r\n\r\nCould it be a compile flag missing or something with my go compiler? I tried different DEBUG flags but with no difference. But I'm also pretty new when it comes to sqlite and compiling C code in general so I might just be doing it wrong.\r\n\r\nThanks for making this!\r\n "},"comment":{"url":"https://api.github.com/repos/bvinc/go-sqlite-lite/issues/comments/434363340","html_url":"https://github.com/bvinc/go-sqlite-lite/issues/9#issuecomment-434363340","issue_url":"https://api.github.com/repos/bvinc/go-sqlite-lite/issues/9","id":434363340,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDM2MzM0MA==","user":{"login":"bvinc","id":165166,"node_id":"MDQ6VXNlcjE2NTE2Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/165166?v=4","gravatar_id":"","url":"https://api.github.com/users/bvinc","html_url":"https://github.com/bvinc","followers_url":"https://api.github.com/users/bvinc/followers","following_url":"https://api.github.com/users/bvinc/following{/other_user}","gists_url":"https://api.github.com/users/bvinc/gists{/gist_id}","starred_url":"https://api.github.com/users/bvinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvinc/subscriptions","organizations_url":"https://api.github.com/users/bvinc/orgs","repos_url":"https://api.github.com/users/bvinc/repos","events_url":"https://api.github.com/users/bvinc/events{/privacy}","received_events_url":"https://api.github.com/users/bvinc/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T16:06:25Z","updated_at":"2018-10-30T16:06:25Z","author_association":"OWNER","body":"Yeah, it's looking much better:\r\n\r\nBefore:\r\n```\r\n--- FAIL: TestErrors (0.00s)\r\n    main_test.go:17: sqlite3: SQL logic error [1]\r\n    main_test.go:22: sqlite3: SQL logic error [1]\r\n    main_test.go:27: sqlite3: no such table: nowhere [1]\r\n    main_test.go:32: sqlite3: near \"nowhere\": syntax error [1]\r\n    main_test.go:45: sqlite3: SQL logic error [1]\r\n    main_test.go:55: sqlite3: table y already exists [1]\r\n    main_test.go:60: sqlite3: SQL logic error [1]\r\n    main_test.go:65: sqlite3: no such column: invalid [1]\r\n```\r\n\r\nAfter:\r\n```\r\n--- FAIL: TestErrors (0.00s)\r\n    main_test.go:17: sqlite3: no such table: nowhere [1]\r\n    main_test.go:22: sqlite3: near \"nowhere\": syntax error [1]\r\n    main_test.go:27: sqlite3: no such table: nowhere [1]\r\n    main_test.go:32: sqlite3: near \"nowhere\": syntax error [1]\r\n    main_test.go:45: sqlite3: table x already exists [1]\r\n    main_test.go:55: sqlite3: table y already exists [1]\r\n    main_test.go:60: sqlite3: no such column: invalid [1]\r\n    main_test.go:65: sqlite3: no such column: invalid [1]\r\n```"}}
{"actor":{"display_login":"bvinc"}}