agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: ERIC M MICKELSON <emm1@lsdn.ksc.nasa.gov>
To: postgres@postgres.Berkeley.EDU
Subject: TEXT with newlines
Date: Mon, 13 Jun 94 17:09:05 EDT
Message-ID: <199406132108.OAA03257@nobozo.CS.Berkeley.EDU> (raw)
I have just recently started using postgres so please be patient.
I'm curently experiencing trouble adding text fields using libpq from a
C++ program. If the "C" string contains newline characters the record
fails to get appended and postgres prints:
WARN:Jun 13 16:55:27:*** scanner error: Unterminated char/string
constant
I need to get these newline characters stored or else store every line
as a different text array element (blah). I'm sure I am missing
something simple, but please help if you can.
Thanks
------------------------------------------------------------------
Eric Mickelson mail-stop: LSO-284
Lockheed Space Operations Co. phone: (407) 861-7509
1100 Lockheed Way
Titusville, FL 32780 e-mail: emm1@endeavour.lsdn.ksc.nasa.gov
------------------------------------------------------------------
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: emm1@lsdn.ksc.nasa.gov
Subject: Re: TEXT with newlines
In-Reply-To: <199406132108.OAA03257@nobozo.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox