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
 LabTalk substitution in a _long_ SQL query fails
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

IrI

Germany
4 Posts

Posted - 07/29/2020 :  07:11:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.0.0 SR2
Operating System: Win10 Pro


Hello everyone,

I would like to substitute a few LabTalk variables into my (relatively long) SQL query, but it won't work. Still, it works if my SQL query is shorter.
I did some trial-and-error tests and apparently, LabTalk substitution in Origin 9.0 needs the SQL query to be less than 3050 bytes. However, I need to get it to work with a 3583 byte long query.

Do I have any options?


Cheers
IrI

cpyang

USA
1406 Posts

Posted - 07/29/2020 :  09:15:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Newer versions of Origin, that buffer has been expended.

CP
Go to Top of Page

IrI

Germany
4 Posts

Posted - 07/29/2020 :  09:51:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
According to this thread (https://my.originlab.com/forum/topic.asp?TOPIC_ID=46209), this problem persists even in Origin 2020b.

BTW right now, I am trying to shorten my SQL query using more LabTalk substitutions. Whenever I try to preview substituted string with only 14 substitutions, Origin crashes completely. Is this a known/normal behavior?

Cheers
IrI
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/29/2020 :  10:16:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, 2020b the buffer was 8192, and we double it for 2021.

But for your 9.0, it was 3050 right? So your SQL will definitely work in 2020b.

CP
Go to Top of Page

IrI

Germany
4 Posts

Posted - 07/30/2020 :  05:46:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the info.
Is a costly upgrade to 2020b the only solution?

Cheers
IrI
Go to Top of Page

IrI

Germany
4 Posts

Posted - 08/03/2020 :  07:19:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Up
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