From fe1ac16022632c6938da4c11fc04a347e01245e2 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Fri, 20 Sep 2024 03:21:52 -0400 Subject: [PATCH] COLDBOX-1293 Resolve (#594) * COLDBOX-1293 Resolve * format update --- system/core/database/SchemaInfo.cfc | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/system/core/database/SchemaInfo.cfc b/system/core/database/SchemaInfo.cfc index 92ad1ca02..710ff7a6d 100644 --- a/system/core/database/SchemaInfo.cfc +++ b/system/core/database/SchemaInfo.cfc @@ -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"; } }