diff --git a/lib/DBDish/Connection.pm6 b/lib/DBDish/Connection.pm6 index dff875dc..88f0f26d 100644 --- a/lib/DBDish/Connection.pm6 +++ b/lib/DBDish/Connection.pm6 @@ -45,7 +45,9 @@ method new(*%args) { method prepare(Str $statement, *%args) { ... } method do(Str $statement, *@params, *%args) { - with self.prepare($statement) { + if !@params && self.can('execute') { + self.execute($statement, |%args); + } orwith self.prepare($statement, |%args) { LEAVE { .finish } .execute(@params, |%args); }