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 > Pervasive.SQL > Update SQL Problem

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-09, 11:28
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
Update SQL Problem

I need to update a logical (boolean) field.

Tried 'Update table
set logicalfield = true
where key = mykeyvalue'

this fails with the error:

<<<<<<<<<<<<<<<<<<<<<<<<
[LNA][Pervasive][ODBC Engine Interface]Error in expression: True
>>>>>>>>>>>>>>>>>>>>>>>>

What is the syntax to accomplish this update?

Thanks!

Bill S.
Reply With Quote
  #2 (permalink)  
Old 01-21-09, 12:20
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,015
How is the "logicalfield" defined in the DDFs?
You might try:
Update table
set logicalfield = 1
where key = mykeyvalue
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 01-21-09, 13:03
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
i have tried this.

I don't know how to view/edit the DDF's yet.

Thanks, I will look into the DDF situation.
Reply With Quote
  #4 (permalink)  
Old 01-21-09, 13:20
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
The DDF was the issue.

Thanks.

Bill Slaughter
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