The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 SQL Editor Labtalk Substitution Limits
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Asmetana1

USA
9 Posts

Posted - 06/29/2020 :  10:09:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2020b, Windows 10
I have a very long SQL query where labtalk variable substitution fails. When I try to preview the query with substitution, my scrip prompts for a value, but the substitution never happens. If I remove any one of several subqueries, the substitution works fine. I have verified the query works by using a text editor to make the substitution and running the query. The entire sql set is slightly less than 8000 characters and there are 15 substitutions. The substituted value is shorter then the variable name so the total number of characters decreases slightly after substitution.

What are the limits associated with labtalk substitution in the SQL editor in terms of lines, characters, substitutions, etc?
Thanks.

cpyang

USA
1406 Posts

Posted - 06/29/2020 :  6:39:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There is indeed a buffer size limit on the output to be less then 8192 bytes.

I added https://originlab.jira.com/browse/ORG-22176

We can provide you with a beta2 build to try.

CP
Go to Top of Page

Asmetana1

USA
9 Posts

Posted - 06/30/2020 :  09:41:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That was the issue. I was exceeding the character limit. I was able to shorten some names and eliminate some white space that had been added for readability, and the substitution now works.
Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000