Permalink
Browse files

avoid passing undefined statement to sqlite3_prepare_v2

  • Loading branch information...
1 parent e339bab commit 7187fbec0cdb625904b3056d84c6a657d60ea2ee @moritz moritz committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/MiniDBD/SQLite.pm6
View
2 lib/MiniDBD/SQLite.pm6
@@ -92,7 +92,7 @@ class MiniDBD::SQLite::StatementHandle does MiniDBD::StatementHandle {
die $errstr if $.RaiseError;
}
- submethod BUILD(:$!conn) {
+ submethod BUILD(:$!conn, :$!statement) {
my @stmt := CArray[OpaquePointer].new;
@stmt[0] = OpaquePointer;
my $status = sqlite3_prepare_v2(

0 comments on commit 7187fbe

Please sign in to comment.