diff options
Diffstat (limited to 'build_db.plx')
-rwxr-xr-x | build_db.plx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_db.plx b/build_db.plx index e98423a..7d2cf04 100755 --- a/build_db.plx +++ b/build_db.plx @@ -237,7 +237,7 @@ if (!$options{append}){ else { for my $i (sort(keys %columns)){ $statement = "SELECT COUNT(*) AS CNTREC FROM pragma_table_info('$table_name') WHERE name='$i';"; - if (db_cmd($dbh, $statement) == 0){ + if (!db_cmd($dbh, $statement)){ $statement = "ALTER TABLE $table_name ADD COLUMN \"$i\";"; db_cmd($dbh, $statement); } |