Skip to content

Commit 8cab776

Browse files
committed
Report nano warning only once
1 parent de9c497 commit 8cab776

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0.58 - 2021-02-09, H.Merijn Brand
1+
0.58 - 2021-02-10, H.Merijn Brand
22
* It's 2021
33
* "class" is not a CSV attribute to pass on (issue#8)
44

t/51_commit.t

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ my @tbl_def = (
1515
[ "name", "CHAR", 64, 0 ],
1616
);
1717

18+
my $nano_msg = "SQL::Nano does not support count (*)";
1819
sub RowCount {
1920
my ($dbh, $tbl) = @_;
2021

2122
if ($nano) {
22-
diag ("SQL::Nano does not support count (*)");
23+
$nano_msg and diag ($nano_msg);
24+
$nano_msg = "";
2325
return 0;
2426
}
2527

0 commit comments

Comments
 (0)