Skip to content

Commit

Permalink
fix(QuickBuilder): Pass grammar to inferSqlType
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Feb 3, 2025
1 parent 275b476 commit 54ca2aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
},
"type":"modules",
"dependencies":{
"qb":"^10.0.1",
"qb":"^11.0.1",
"str":"^4.0.0",
"mementifier":"^3.0.0"
},
"devDependencies":{
"coldbox":"stable",
"testbox":"stable",
"coldbox":"v7.3.0",
"testbox":"v6.1.0",
"cfcollection":"^3.6.4",
"cfmigrations":"^4.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions models/QuickQB.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ component
"value" : ( isNull( arguments.value ) || getEntity().isNullValue( arguments.column, arguments.value ) ) ? "" : arguments.value,
"cfsqltype" : getEntity().attributeHasSqlType( arguments.column ) ? getEntity().retrieveSqlTypeForAttribute(
arguments.column
) : ( isNull( arguments.value ) ? "CF_SQL_VARCHAR" : getUtils().inferSqlType( arguments.value ) ),
) : ( isNull( arguments.value ) ? "CF_SQL_VARCHAR" : getUtils().inferSqlType( arguments.value, variables.grammar ) ),
"null" : isNull( arguments.value ) || (
getEntity().canConvertToNull( arguments.column ) && getEntity().isNullValue(
arguments.column,
Expand All @@ -876,7 +876,7 @@ component
"value" : isNull( arguments.value ) ? "" : arguments.value,
"cfsqltype" : getEntity().attributeHasSqlType( arguments.column ) ? getEntity().retrieveSqlTypeForAttribute(
arguments.column
) : ( isNull( arguments.value ) ? "CF_SQL_VARCHAR" : getUtils().inferSqlType( arguments.value ) ),
) : ( isNull( arguments.value ) ? "CF_SQL_VARCHAR" : getUtils().inferSqlType( arguments.value, variables.grammar ) ),
"null" : isNull( arguments.value ),
"nulls" : isNull( arguments.value )
};
Expand Down

0 comments on commit 54ca2aa

Please sign in to comment.