Skip to content

Commit 3b121c7

Browse files
committed
fixed bug "if operator" in "Table.pm" on sub "create_colAttr"
1 parent 0a32e61 commit 3b121c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CellBIS/SQL/Abstract/Table.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ sub create_colAttr {
274274
}
275275

276276
if (exists $attr->{is_null}) {
277-
$data .= 'NOT NULL ' if $attr->{is_null} eq 0;
278-
$data .= 'NULL ' if $attr->{is_null} eq 1;
277+
$data .= 'NOT NULL ' if $attr->{is_null};
278+
$data .= 'NULL ' if $attr->{is_null} == 1;
279279
}
280280
else {
281281
$data .= 'NOT NULL ';

0 commit comments

Comments
 (0)