Skip to content

Commit 58a74b8

Browse files
committed
Add flags argument
1 parent 23e2a4b commit 58a74b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/functions.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ function array2sql_parts($data) {
9393
return [...fields2sql_parts(array_keys($data)), $data];
9494
}
9595

96-
function dump_rows($q) {
97-
while($row = ibase_fetch_assoc($q)){
96+
function dump_rows($q, int $flags = 0) {
97+
while($row = ibase_fetch_assoc($q, $flags)){
9898
var_dump($row);
9999
}
100100
}
101101

102-
function dump_table_rows($table, $tr = null) {
102+
function dump_table_rows($table, $tr = null, int $flags = 0) {
103103
if($tr)$args[] = $tr;
104104
$args[] = sprintf('SELECT * FROM "%s"', $table);
105105

106-
dump_rows(ibase_query(...$args));
106+
dump_rows(ibase_query(...$args), $flags);
107107
}
108108

109109
function insert_into($table, $data, $tr = null) {

0 commit comments

Comments
 (0)