Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4295

TEIID31150 when using date function with MSSQL

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • None

      I'm using teiid version 8.11.3
      I have a field of type date over mssql 2012, when applying a date function over it, i get directly the error :
      org.teiid.jdbc.TeiidSQLException: TEIID31150 The function 'YEAR(testmark.mydate)' is ambiguous. Use schema qualification.

      if I change the field type to datetime, the query executes successfully.

      Here is the simplified query i'm testing with:
      select YEAR("testmark"."mydate") as "testmark_mydate" from "implify_dataModel_at"."implify_data"."implify_red2"."testmark" "testmark" LIMIT 0 , 10

            rhn-engineering-shawkins Steven Hawkins
            mtawk Mark Tawk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: