File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ PostgreSQL.prototype._buildWhere = function (model, where) {
528
528
stmt . merge ( sqlExp ) ;
529
529
} else {
530
530
// The expression is field value, not a condition
531
- if ( keys . length || p [ '0' ] ) {
531
+ if ( keys . length || p . type [ 0 ] ) {
532
532
// The key is a nested properties
533
533
columnValue = self . toColumnValue ( p , expression ) ;
534
534
if ( columnValue === null ) {
@@ -626,12 +626,12 @@ PostgreSQL.prototype.toColumnValue = function (prop, val) {
626
626
/*return null;*/
627
627
}
628
628
}
629
- if ( Array . isArray ( prop . type ) && prop . type [ 0 ] === String ) {
629
+ /* if (Array.isArray(prop.type) && prop.type[0] === String) {
630
630
return new ParameterizedSQL({
631
631
sql: '@>',
632
632
params: [JSON.stringify(val)],
633
633
});
634
- }
634
+ }*/
635
635
if ( prop . type === String ) {
636
636
return new ParameterizedSQL ( {
637
637
sql : '?' ,
You can’t perform that action at this time.
0 commit comments