Skip to content

[Bug]: Mssql data type timestamp mishandled #41268

@verils

Description

@verils

Is there an existing issue for this?

  • I have searched the existing issues

Description

When querying a table including a field of timestamp data type from mssql, it occurs an error:

Your query failed to execute:
The conversion from timestamp to DATE is unsupported.
[SQLSTATE: null]

In Date and time data types and functions (Transact-SQL), it says:

The Transact-SQL rowversion data type isn't a date or time data type. timestamp is a deprecated synonym for rowversion.

Here's the introduction of rowversion (Transact-SQL).

timestamp is a datatype to store binary array. The mssql-plugin tries to convert the timestamp fields into LocalDateTime object, it appearently can't be done.

Steps To Reproduce

  1. Create a new table (for example, "MyTable" in sql server, including a timestamp field.
  2. Add this sql server as a data source to your application.
  3. Create a query of select * from MyTable, then run it.

Public Sample App

No response

Environment

Release

Severity

High (Blocker to building or releasing)

Issue video log

No response

Version

Self Hosted 1.86

Metadata

Metadata

Labels

BugSomething isn't workingCommunity Reportedissues reported by community membersHighThis issue blocks a user from building or impacts a lot of usersNeeds TriagingNeeds attention from maintainers to triageRelease

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions