pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Inserting Fingerprint templates as varchar not as bytea type in PostgreSQL
2+ messages / 2 participants
[nested] [flat]

* Inserting Fingerprint templates as varchar not as bytea type in PostgreSQL
@ 2010-11-10 07:49 cubfi <vanjinathan.s@tcs.com>
  2010-11-10 17:13 ` Re: Inserting Fingerprint templates as varchar not as bytea type in PostgreSQL Maciek Sakrejda <msakrejda@truviso.com>
  0 siblings, 1 reply; 2+ messages in thread

From: cubfi @ 2010-11-10 07:49 UTC (permalink / raw)
  To: pgsql-jdbc


I am not able to insert fingerprint templates in db. I am using the datatype
as varchar(4000).
But when i tried with bytea type itk ok.
Isn't possible to insert these templates as varchar?
I have tried with varchar but its showing the illegal argument exception "\0
not allowed".
-- 
View this message in context: http://postgresql.1045698.n5.nabble.com/Inserting-Fingerprint-templates-as-varchar-not-as-bytea-type...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Inserting Fingerprint templates as varchar not as bytea type in PostgreSQL
  2010-11-10 07:49 Inserting Fingerprint templates as varchar not as bytea type in PostgreSQL cubfi <vanjinathan.s@tcs.com>
@ 2010-11-10 17:13 ` Maciek Sakrejda <msakrejda@truviso.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Maciek Sakrejda @ 2010-11-10 17:13 UTC (permalink / raw)
  To: cubfi <vanjinathan.s@tcs.com>; +Cc: pgsql-jdbc

PostgreSQL forbids character code 0 (NULL, the delimiter of C-style
strings) in varchar columns.
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-11-10 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10 07:49 Inserting Fingerprint templates as varchar not as bytea type in PostgreSQL cubfi <vanjinathan.s@tcs.com>
2010-11-10 17:13 ` Maciek Sakrejda <msakrejda@truviso.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox