Skip to content

Commit

Permalink
COLDBOX-1293 Resolve (#594)
Browse files Browse the repository at this point in the history
* COLDBOX-1293 Resolve

* format update
  • Loading branch information
jclausen authored Sep 20, 2024
1 parent 8718f9d commit fe1ac16
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions system/core/database/SchemaInfo.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -191,33 +191,17 @@ component singleton {
/**
* Get the query param type for a specific datasource for a date/time column
*
* @dsn The datasource name
* @username The username to use
* @password The password to use
* @dsn The datasource name
* @username The username to use
* @password The password to use
* @deprecated There are no longer any instances where this would be different between engines. Deprecate in 7.x and remove in 8x.
*/
public string function getQueryParamDateTimeType(
required string dsn,
username = "",
password = ""
){
var dbInfo = getDatabaseInfo( argumentCollection = arguments );
switch ( dbInfo.database_productName ) {
case "PostgreSQL": {
return "cf_sql_timestamp";
}
case "MySQL": {
return "cf_sql_timestamp";
}
case "Microsoft SQL Server": {
return "cf_sql_datetime";
}
case "Oracle": {
return "cf_sql_timestamp";
}
default: {
return "cf_sql_timestamp";
}
}
return "cf_sql_timestamp";
}

}

0 comments on commit fe1ac16

Please sign in to comment.