Skip to content

Commit

Permalink
COLDBOX-1293 Resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Sep 19, 2024
1 parent 8718f9d commit 4b5a3b2
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions system/core/database/SchemaInfo.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -194,30 +194,14 @@ component singleton {
* @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 4b5a3b2

Please sign in to comment.