If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Default value in parameter-list for SELECT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-04, 06:53
jonasj jonasj is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Question Default value in parameter-list for SELECT

Hi guys,

I'm porting an app from Progress 8.3 to Progress 9.1D (64-bit), and I'm having trouble.

In the second SELECT statement, there's a column that doesn't exist in the table that I'm reading from, so the default value (date) of 11/11/1111 should be returned on a match. But how do I accomplish that?

If I put 11/11/1111, I get error 223 reported from the database, if I put NULL, I get a 247, if I put a dummy variable there, I get 201 .....

The '.cp'-file is preprocessed with sqlcpp, and then built with cc on a HP-UX 11 machine. I'm building a large ESQL client.

Cheers,
Jonas
Attached Files
File Type: txt q1.txt (1.4 KB, 49 views)
Reply With Quote
  #2 (permalink)  
Old 01-20-04, 10:23
jonasj jonasj is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Red face

Sigh, imagine what a difference a few '\' chars can do.
The 'default date' should of course be written 11\/11\/1111, why didn't I think of that .....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On