dbTalk Databases Forums  

Host variables (from C) in EmbeddedSQL

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Host variables (from C) in EmbeddedSQL in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andy Collins
 
Posts: n/a

Default Host variables (from C) in EmbeddedSQL - 02-18-2004 , 05:08 AM






Hi Folks,

I'm cutting my first app with ESQL (postgresql) within C and have a
remedial question.

When I pass a fixed length string to SQL to add to a table (or anything
really) must it be NULL terminated even though I've told SQL it's a
fixed length char(n) and C knows it as the same?

My experiments suggest this is the case. Can anyone confirm this and
suggest a way around it as I'm grafting ESQL onto an existing application.


Thanks


Andy.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.