search on Oracle CHAR primary key column

[prev] [thread] [next] [Date index for 2004/08/25]

From: Jim Brandt
Subject: search on Oracle CHAR primary key column
Date: 14:19 on 25 Aug 2004
I need to interface with an Oracle table that has CHARs as primary key 
columns (there are two), but I've been unable to get any 
selects/searches to match anything unless I use search_like. I finally 
figured out it was probably because the datatype is being set to 
VARCHAR by default.

Is there any way I can tell CDBI to treat these as CHARs and bind the 
parameters correctly?

I found a reference to the data_type method on the kwiki:

http://www.class-dbi.com/cgi-bin/wiki/index.cgi?WorkingWithBlobs

but was unable to get it to work.

I also found this tidbit in the archives:

http://groups.kasei.com/mail/arc/cdbi-talk/2004-07/msg00251.html

but that didn't work either.

Are one of these the solution? If so, I'll assume I'm doing something 
wrong and keep trying.

I'm using CDBI 0.94.

Thanks,
Jim

==========================================
Jim Brandt
Administrative Computing Services
University at Buffalo

search on Oracle CHAR primary key column
Jim Brandt 14:19 on 25 Aug 2004

Re: search on Oracle CHAR primary key column
Adam Przygienda 15:25 on 25 Aug 2004

Re: search on Oracle CHAR primary key column
Jay Strauss 15:32 on 25 Aug 2004

Re: search on Oracle CHAR primary key column
Jim Brandt 14:43 on 26 Aug 2004

Re: search on Oracle CHAR primary key column
Tim Bunce 15:56 on 26 Aug 2004

Re: search on Oracle CHAR primary key column
Jim Brandt 19:28 on 27 Aug 2004

Re: search on Oracle CHAR primary key column
Tony Bowden 10:05 on 30 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52