CFStoredProc - Lucee converts DateTime values to string differently than ACF

Description

When using a stored procedure to return a value from a column of datatype ‘datetime’, Lucee wraps the value in a “ts” format, whereas ACF returns the value without additional formatting.

Example Results:

  • ACF: 2025-04-15 10:44:54

  • Lucee: {ts '2025-04-15 10:44:54'}

Inserting new values using a CFSQLType of “CF_SQL_TIMESTAMP” works as expected. In the attached figures, the entries were inserted into the test table using the same stored procedure. The results in Figure 1 show the entries as displayed by SSMS.

When selecting the entries via the same stored procedure, the results from ACF and Lucee differ. Figure 2 shows a <cfdump> of the query results under ACF, whereas Figure 3 shows the same results under Lucee.

All of the test DDL, stored procedures, and CFM used to produce these results as well as all figures have been included as an attachment.

Environment

Lucee Version: 6.2.0.321
Version Name: Gelert
Release Date: Feb 26, 2025
Java 21.0.6 (Eclipse Adoptium) 64bit
OS: Windows 10 (10.0) 64bit
MS SQL Database: Microsoft SQL Server 2017 (RTM-GDR) (KB5046857) - 14.0.2070.1 (X64)

Attachments

1

Activity

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 15 April 2025 at 17:11
Updated 15 April 2025 at 17:13