You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2017/03/13 15:53:41 UTC

[jira] [Updated] (CALCITE-1672) schema name alias doesn't work in INSERT INTO

     [ https://issues.apache.org/jira/browse/CALCITE-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde updated CALCITE-1672:
---------------------------------
    Component/s: jdbc-adapter

> schema name alias doesn't work in INSERT INTO
> ---------------------------------------------
>
>                 Key: CALCITE-1672
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1672
>             Project: Calcite
>          Issue Type: Bug
>          Components: jdbc-adapter
>            Reporter: Lei Wei
>            Assignee: Julian Hyde
>            Priority: Minor
>
> Hi, I setup calcite connecting with posgresql db, and starting avatica to take jdbc connectivities. I used alias on the schemas that added to the root schema. I'm able to run select statements using alias schema, but it doesn't work in INSERT and UPDATE.
> Exception: ExampleExceptionFormatter: exception message was: Error -1 (00000) : Error while executing SQL "update LEI_DEMO_SANDBOX2.test_table set no='1111111'": Remote driver error: RuntimeException: while executing SQL [UPDATE "LEI_DEMO_SANDBOX2"."test_table" SET "no" = '1111111'] -> PSQLException: ERROR: schema "LEI_DEMO_SANDBOX2" does not exist
> ExampleExceptionFormatter: exception message was: Error -1 (00000) : Error while executing SQL "insert into LEI_DEMO_SANDBOX2.test_table(no) values ('1111111')": Remote driver error: RuntimeException: while executing SQL [INSERT INTO "LEI_DEMO_SANDBOX2"."test_table" ("no")
> VALUES  ('1111111')] -> PSQLException: ERROR: schema "LEI_DEMO_SANDBOX2" does not exist



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)