SQL thown off by {} symbols

Stimulsoft Reports.NET discussion
Post Reply
TestBoy
Posts: 46
Joined: Tue Oct 23, 2018 8:14 pm

SQL thown off by {} symbols

Post by TestBoy »

So I am trying to do a one off quick report and I ran into something that stopped me cold.

If I do something like this:

Code: Select all

where process_date between '2019-01-01' and '2019-12-31' and t.code REGEXP '^[a-z|A-Z]{2}[0-9]{2}.[5-6]$'
I think it is replacing the {2} in there, or at least being confused.
If I hit "retrieve colums" a "SQL Expressions" dialog appears with two lines that have 2 for the label and 2 entered in the two textboxes next to them.

Is there any way to get it to ignore or escape the curly braces in my regular expressions?
Lech Kulikowski
Posts: 6266
Joined: Tue Mar 20, 2018 5:34 am

Re: SQL thown off by {} symbols

Post by Lech Kulikowski »

Hello,

Please set the AllowExpressions=false property for the SQL data source.

Thank you.
TestBoy
Posts: 46
Joined: Tue Oct 23, 2018 8:14 pm

Re: SQL thown off by {} symbols

Post by TestBoy »

That worked!

Thanks.
Lech Kulikowski
Posts: 6266
Joined: Tue Mar 20, 2018 5:34 am

Re: SQL thown off by {} symbols

Post by Lech Kulikowski »

Hello

We are always glad to help you!

Thank you.
Post Reply