-
1. Re: How to execute queries from Squirrel which has input vaiables
rareddy Jul 9, 2016 9:55 AM (in response to ragava28)That is neat idea, when working with XML/DDL based vdbs, in terms of development.
Teiid does support execution of anonymous procedure blocks DML Commands · Teiid Documentation for me this looks like bug.
-
2. Re: How to execute queries from Squirrel which has input vaiables
shawkins Jul 11, 2016 9:32 AM (in response to rareddy)You are seeing squirrel breaking up the query around the ; delimiter. You need to change to use a different delimiter under session properties -> sql
-
3. Re: How to execute queries from Squirrel which has input vaiables
ragava28 Jul 12, 2016 12:40 AM (in response to shawkins)Steven,
I didnt get it , In Session properties => SQL ,I have statement Separator as semicolon(;). I hope that is correct. Can you please suggest whats needs to be changed?
While thinking about suggested change. I got one more question. Can you please help me in understanding this.
VDB is unified platform to connect/access/update to different datasource using common Teiid SQL syntax. i.e teiid SQL Syntax is converted in to native source syntax at runtime using translator(JDBC Specifications). If my understanding is correct. Codes in my post are working fine in Store procedure. which means it should be working fine form Squirrel also, with out any syntax change?
-
4. Re: How to execute queries from Squirrel which has input vaiables
rareddy Jul 12, 2016 8:17 AM (in response to ragava28)yes, the understanding is right. What Steve is saying is, SquirreL when you executed the anonymous procedure is splitting the query into multiple queries and executing, where as Teiid expects that to be a single statement. The way to do it is making SquirreL think that the whole procedure is single block, since it splits at ";" change that preference to something else, then it should work correctly as you expect.
-
5. Re: How to execute queries from Squirrel which has input vaiables
ragava28 Jul 15, 2016 2:13 PM (in response to rareddy)Thanks Steven & Ramesh. that worked. this will save lot of time in development