Skip site navigation (1) Skip section navigation (2)

PLEASE HELP ME!!!binary in text/varchar?

From: Swaminathan Natarajan <swami(at)dcs(dot)uky(dot)edu>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: PLEASE HELP ME!!!binary in text/varchar?
Date: 2001-03-29 20:33:35
Message-ID: Pine.LNX.4.10.10103291530520.31907-100000@mickey.dcs.uky.edu (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi there!

I am using pgsql 7.0/ecpg C interface on Redhat 6.1.
Is it possible to store and retrieve fixed length binary data (<100bytes
in length) in text or varchar (or any other data type)? Using ecpg, I want
to "memcpy" from my local variable to a field in the table and back.
Postgresql seems to do a "strcpy" instead. If someone can help me, I
would greatly appreciate it! I checked the archives and examples but found
no relevant articles.

THANKS!!!
Swami. 




pgsql-interfaces by date

Next:From: Bruce MomjianDate: 2001-03-30 03:12:45
Subject: User administration tool
Previous:From: Jeff MacDonaldDate: 2001-03-29 20:10:05
Subject: mod_auth_pgsql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group