Menu

#1654 Unexpected Error when creating a View

version 2.5.x
open-works-for-me
None
9
2023-01-12
2022-06-09
benmeng
No

I am using HSQL for testing a project and got issues when creating views. Here is the sample statement I was trying to test and got exception with "unexpected end of statement" . I could not see any issue with the sql statment. Please let me know if I made any adjustment for the query I have.

CREATE VIEW IF NOT EXISTS "2000.XXXXX.MSG.CCCCCCC.view" AS SELECT * FROM "2000.XXXXX.MSG.CCCCCCC" LEFT JOIN "2000.XXXXX.MSG.CCCCCCC.FORMAT-IDENTIFIER" USING("2000.XXXXX.MSG.CCCCCCC.id") LEFT JOIN "2000.XXXXX.MSG.CCCCCCC.OOOOOOOO.SAMPLE" USING("2000.XXXXX.MSG.CCCCCCC.YYYY.id");

Thank you.

Discussion

  • Fred Toussi

    Fred Toussi - 2022-06-09

    What is the error message?

     
    • benmeng

      benmeng - 2022-06-09

      Hi Fred,

      Thank you for your prompt response.

      The error message I got is: "Unexpected end of statement"

      Thank you.

       

      Last edit: Fred Toussi 2022-06-09
  • Fred Toussi

    Fred Toussi - 2022-06-09

    The syntax is supported. You need to check that you execute the full statement to the end.

     
  • Fred Toussi

    Fred Toussi - 2023-01-12
    • status: open --> open-works-for-me
    • assigned_to: Fred Toussi
     

Log in to post a comment.

MongoDB Logo MongoDB