Skip to content

Commit

Permalink
Fix unit tests expecting assnTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Ng committed Jul 25, 2014
1 parent 2cc8ae4 commit 5d5bf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/transformers/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var sql = utils.mixin(new BaseTransformer(), new (function () {
var val = comp.value
, name;

if(comp.opts.assnTokens.length > 1) {
if(comp.opts.assnTokens != null && comp.opts.assnTokens.length > 1) {
name = comp.opts.assnTokens.join('#')
}
else {
Expand Down

0 comments on commit 5d5bf8f

Please sign in to comment.