Page 1 of 1

intersects and delimiters on command line.

Posted: Thu Jan 17, 2008 12:06 pm
by jason.elder
Hi,
I'm trying ot debug some sql by running it on the command line.

The query i'm testing involves a LIKE, and uses @1 and w/line, and i'm getting the standard errors:

115 'delimiters' not allowed in query
115 'intersects' not allowed in query

I know how to fix this in vortex (with the apicp options) but how do you do it on the command line?

intersects and delimiters on command line.

Posted: Thu Jan 17, 2008 12:26 pm
by mark
Use "tsql" instead of "texis" for your command line query. It will allow those by default. And you can use multiple queries, either interactively or on the command line, so you can perform "set" statements as needed before your select.

intersects and delimiters on command line.

Posted: Thu Jan 17, 2008 2:00 pm
by jason.elder
ah.
I don't have tsql....I guess thats because we only have a license to use webinator?

intersects and delimiters on command line.

Posted: Thu Jan 17, 2008 2:14 pm
by mark
Write and run a tiny vortex script. A minimal script would be:

<script language=vortex>
<db=/path/to/your/database>
<a name=main>
<sql row "select field1,field2 from ...">
$field1, $field2
</sql>
</a>
</script>

Run it with
texis myscript/main.txt