babashka / pod-babashka-go-sqlite3

A babashka pod for interacting with sqlite3.
BSD 3-Clause "New" or "Revised" License
35 stars 4 forks source link

When database path is nil, query and execute! will hang #13

Closed judepayne closed 1 year ago

judepayne commented 1 year ago

Hi,

Mistakenly setting the database path to nil, causes a query or an execute! statement to hang indefinitely.

(sqlite\query nil "SELECT * FROM config")

Same for execute. Could we trap this error please?

borkdude commented 1 year ago

Hm yeah, I think a PR for this would be good. I can take a look in a few weeks but if someone will beat me to it, I'd be happy to take the PR. cc @lispyclouds