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 > Error in assignment

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-08, 07:17
adam jackson adam jackson is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
Red face Error in assignment

Hi,

I have two tables in my database that have large(ish) text fields in them. When I use Crystal Reports I can view them OK however when I use MS Query I get an "Error in Assignment" error message if I include any one or more of these large text fields. If they are not included all is OK. In the DDFs the fields are declared as Char.

Hope someone can help
Reply With Quote
  #2 (permalink)  
Old 08-07-08, 08:42
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 935
A few questions:
- What version of PSQL are you using?
- What is the size of the CHAR fields causing the errors?
- Does ODBC Test or Pervasive Control Center show the same error?
__________________
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 08-07-08, 09:12
adam jackson adam jackson is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
8.7
all more than 255 up to a max of 1200
PCC returns
ODBC Error: SQLSTATE = 01S01, Native error code = 0
Error in row.
Error in assignment.
Reply With Quote
  #4 (permalink)  
Old 08-07-08, 11:39
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 935
According to the PSQL v8 documentation (SQL Language Reference) the maximum size of a CHAR field is 255 bytes. PSQL v9 and later does support larger char fields though.
You'll either need to upgrade to at least v9.52 (latest of the v9.5 series) or split your Char fields to less than 255 bytes.
__________________
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
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