Permalink
Browse files

fix a segfault

  • Loading branch information...
moritz committed Apr 26, 2012
1 parent 7187fbe commit fc926383c4378a477bac9726f8241f6417bd8628
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/MiniDBD/SQLite.pm6
View
@@ -124,9 +124,10 @@ class MiniDBD::SQLite::StatementHandle does MiniDBD::StatementHandle {
my @row;
return @row if $!row_status == SQLITE_DONE;
for ^sqlite3_column_count($!statement_handle) {
- @row.push: sqlite3_column_text($!statement_handle);
+ @row.push: sqlite3_column_text($!statement_handle, $_);
}
$!row_status = sqlite3_step($!statement_handle);
+
@row;
}
method fetchrow_arrayref {

0 comments on commit fc92638

Please sign in to comment.