mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Release connection when unprepared statements can't be built
Add specs Fix typo in docs
This commit is contained in:
parent
4fe3884898
commit
9b03aa6535
4 changed files with 31 additions and 2 deletions
|
@ -99,6 +99,7 @@ class DummyDriver < DB::Driver
|
|||
def initialize(connection, @query : String, @prepared : Bool)
|
||||
@params = Hash(Int32 | String, DB::Any).new
|
||||
super(connection)
|
||||
raise query if query == "syntax error"
|
||||
end
|
||||
|
||||
protected def perform_query(args : Enumerable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue