Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum



Reply
 
LinkBack Thread Tools Display Modes
Old 2009-12-15   #1 (permalink)
Ingres Community
 
Join Date: May 2007
Posts: 52
Default OpenROAD - SQL Functions

are there any plans to introduce the many new SQL date, string, & numeric functions into OpenROAD? Some of them would be very useful to have built into OR.

And whatever happend to the 'Language Elements' chapter of the LRM, which used to feature such things, which seems to have gone AWOL since we lost the printed versions of the manuals?
Pete.Wilkinson@vivista.sungard.com is offline   Reply With Quote
Old 2009-12-15   #2 (permalink)
Ingres Corp
 
Join Date: Mar 2007
Location: On the OpenROAD
Posts: 828
Default

Quote:
are there any plans to introduce the many new SQL date, string, & numeric functions into OpenROAD? Some of them would be very useful to have built into OR.
You can use them in SQL (e.g. within SELECT statements), provided the Ingres version you use supports them. We plan to add them to the 4GL language with a future (OR 6.x) version.
Quote:
And whatever happend to the 'Language Elements' chapter of the LRM, which used to feature such things, which seems to have gone AWOL since we lost the printed versions of the manuals?
I admit that this somehow disappeared. You should open a ServiceDesk issue to open a docu bug for it.
Bodo is offline   Reply With Quote
Old 2009-12-29   #3 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,230
Send a message via Skype™ to kschendel
Default

I'm no OpenROAD expert, but you might try quote doubling, i.e.

Code:
query1='select ... ... where left(tar_cod,1)=''E'' and ...
to write a single quote inside a quoted string, double it.
kschendel is offline   Reply With Quote
Old 2009-12-29   #4 (permalink)
Junior Member
 
Join Date: Aug 2009
Location: Germany
Posts: 2
Default

as I find the quotes sometimes confusing, I'm using hc_quote instead

select ... ... where left(tar_cod,1)='+hc_quote+'E' + hc_quote +' .....
giessel is offline   Reply With Quote
Old 2009-12-31   #5 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,230
Send a message via Skype™ to kschendel
Default

Since :query1 must be an executable sql statement, try putting a print statement in to display exactly what is in that string, and see if you can execute the same thing in the terminal monitor. Do this with your original, apparently the quoting isn't the problem. You need to find out exactly what is being sent to the DBMS server.
kschendel is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved