Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COLDBOX-1293 Resolve #594

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
}

}
Loading