Host variables (from C) in EmbeddedSQL - Mailing list pgsql-novice

From Andy Collins
Subject Host variables (from C) in EmbeddedSQL
Date
Msg-id 403347B5.9080005@belgravium.com
Whole thread Raw
List pgsql-novice
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.

pgsql-novice by date:

Previous
From: "Crombleholme, Roy"
Date:
Subject: Re: Unable to connect to PostgreSQL server:
Next
From: "Luc ROLLAND"
Date:
Subject: Re: Create Rule