Permalink
Browse files

[SQLite] pass the right undefined pointer type to slite3_prepare_v2

  • Loading branch information...
1 parent 310f846 commit 033acbcf63ee5626858d6c931c8af1154fcb21fe @moritz moritz committed Apr 26, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/MiniDBD/SQLite.pm6
@@ -95,14 +95,12 @@ class MiniDBD::SQLite::StatementHandle does MiniDBD::StatementHandle {
submethod BUILD(:$!conn) {
my @stmt := CArray[OpaquePointer].new;
@stmt[0] = OpaquePointer;
- my @unused := CArray[OpaquePointer].new;
- @unused[0] = OpaquePointer;
my $status = sqlite3_prepare_v2(
$!conn,
$!statement,
-1,
@stmt,
- @unused,
+ CArray[OpaquePointer]
);
$!statement_handle = @stmt[0];
self!handle-error($status);

0 comments on commit 033acbc

Please sign in to comment.