Skip to content

Commit

Permalink
Warning fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Oct 17, 2016
1 parent bb27089 commit 68143d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions lib/txt-to-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,7 @@ function determinePrimaryKey(info) {
}).join(',');
warnings.push('requested columns ('+failingColumns+') failed to be a PrimaryKey');
}
if(warnings.length) {
//console.log("warnings", warnings)
info['warnings'] = warnings;
}
if(warnings.length) { info.warnings = warnings; }
}
var primaryKey = info.primaryKey || [];
info.columnsInfo.forEach(function(columnInfo) {
Expand Down
5 changes: 1 addition & 4 deletions web/txt-to-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,7 @@ function determinePrimaryKey(info) {
}).join(',');
warnings.push('requested columns ('+failingColumns+') failed to be a PrimaryKey');
}
if(warnings.length) {
//console.log("warnings", warnings)
info['warnings'] = warnings;
}
if(warnings.length) { info.warnings = warnings; }
}
var primaryKey = info.primaryKey || [];
info.columnsInfo.forEach(function(columnInfo) {
Expand Down

0 comments on commit 68143d1

Please sign in to comment.