Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBD-Oracle CPAN distribution.

Report information
The Basics
Id: 55445
Status: resolved
Priority: 0/
Queue: DBD-Oracle

People
Owner: Nobody in particular
Requestors: bohica [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.24a
Fixed in:
  • 1.25
  • 1.25-withoutworldwriteables
  • 1.25_brokentar
  • 1.26



Subject: get_info(28) SQL_IDENTIFIER_CASE seems to return the wrong value
Download (untitled) / with headers
text/plain 899b
perl -MDBI -le '$h = DBI->connect("dbi:Oracle:host=xxx.easysoft.local;sid=devel","xxx","xxx");print $h->get_info(28);' returns 3 which is SQL_IC_SENSITIVE described as: Identifiers in SQL are case-sensitive and are stored in mixed case in system catalog. I thought it should be SQL_IC_UPPER: Identifiers in SQL are not case-sensitive and are stores in uppercase in system catalog. drop table mje; drop table "mje"; create table mje (a int); select * from mje; no rows selected select * from "MJE"; no rows selected drop table mje; create table "mje" (a int); select * from "mje"; no rows selected select * from "MJE"; table or view does not exist select * from mje; table or view does not exist Same applies to column names as they are also identifiers. The value 3 (SQL_IC_SENSITIVE) appears to be right for SQL_QUOTED_IDENTIFIER_CASE (93). Martin -- Martin J. Evans Wetherby, UK
I think this is a DBI issue as both SQL_IC_UPPER and SQL_IC_SENSITIVE are found there not in DBD::Oracle? On Wed Mar 10 12:38:39 2010, MJEVANS wrote: Show quoted text
> perl -MDBI -le '$h = > DBI-
> >connect("dbi:Oracle:host=xxx.easysoft.local;sid=devel","xxx","xxx");print
> $h->get_info(28);' > > returns 3 which is SQL_IC_SENSITIVE described as: > > Identifiers in SQL are case-sensitive and are stored in mixed case in > system catalog. > > I thought it should be SQL_IC_UPPER: > > Identifiers in SQL are not case-sensitive and are stores in uppercase > in > system catalog. > > drop table mje; > drop table "mje"; > create table mje (a int); > select * from mje; > no rows selected > select * from "MJE"; > no rows selected > drop table mje; > create table "mje" (a int); > select * from "mje"; > no rows selected > select * from "MJE"; > table or view does not exist > select * from mje; > table or view does not exist > > Same applies to column names as they are also identifiers. > > The value 3 (SQL_IC_SENSITIVE) appears to be right for > SQL_QUOTED_IDENTIFIER_CASE (93). > > Martin
Download (untitled) / with headers
text/plain 268b
On Fri Apr 23 12:30:50 2010, PYTHIAN wrote: Show quoted text
> I think this is a DBI issue as both SQL_IC_UPPER and SQL_IC_SENSITIVE > are found there not in DBD::Oracle?
I don't but I'll look into it. Each DBD should provide its own get_info. Martin -- Martin J. Evans Wetherby, UK
Download (untitled) / with headers
text/plain 435b
On Fri Apr 23 12:36:03 2010, MJEVANS wrote: Show quoted text
> On Fri Apr 23 12:30:50 2010, PYTHIAN wrote:
> > I think this is a DBI issue as both SQL_IC_UPPER and SQL_IC_SENSITIVE > > are found there not in DBD::Oracle?
> > I don't but I'll look into it. Each DBD should provide its own get_info. > > Martin
After fixing the other type one 'Finally' I am not sure where this would be set in DBD::Oracle?? any guess on where it should be set??
Download (untitled) / with headers
text/plain 713b
On Fri Apr 23 15:10:24 2010, PYTHIAN wrote: Show quoted text
> On Fri Apr 23 12:36:03 2010, MJEVANS wrote:
> > On Fri Apr 23 12:30:50 2010, PYTHIAN wrote:
> > > I think this is a DBI issue as both SQL_IC_UPPER and SQL_IC_SENSITIVE > > > are found there not in DBD::Oracle?
> > > > I don't but I'll look into it. Each DBD should provide its own get_info. > > > > Martin
> > After fixing the other type one 'Finally' I am not sure where this would > be set in DBD::Oracle?? > > any guess on where it should be set?? > > > >
I believe this is the relevant code http://search.cpan.org/~timb/DBI-1.609/lib/DBI/DBD.pm#Generating_the_get_info_method. I'll see if I can generate it today. Martin -- Martin J. Evans Wetherby, UK
Download (untitled) / with headers
text/plain 639b
On Mon Apr 26 04:06:30 2010, MJEVANS wrote: Show quoted text
> I believe this is the relevant code > http://search.cpan.org/~timb/DBI- > 1.609/lib/DBI/DBD.pm#Generating_the_get_info_method. > I'll see if I can generate it today. > > Martin
Try the attached file for a start. Might need to go through them and check each one but it is better than the default values I am getting now. It is missing: SQL_MAXIMUM_STMT_OCTETS SQL_MAXIMUM_STMT_OCTETS_DATA SQL_MAXIMUM_STMT_OCTETS_SCHEMA and I've no idea what values they should have. I also had to change SQL_SERVER_NAME to 'unknown' as it showed my database name. Martin -- Martin J. Evans Wetherby, UK
Subject: x.pl
Download x.pl
text/x-perl 22.2k

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 828b
Ok I have applied that stuff on Trunk http://svn.perl.org/modules/dbd-oracle/trunk give it a test and I will close it cheers John On Mon Apr 26 04:21:30 2010, MJEVANS wrote: Show quoted text
> On Mon Apr 26 04:06:30 2010, MJEVANS wrote: >
> > I believe this is the relevant code > > http://search.cpan.org/~timb/DBI- > > 1.609/lib/DBI/DBD.pm#Generating_the_get_info_method. > > I'll see if I can generate it today. > > > > Martin
> > Try the attached file for a start. Might need to go through them and > check each one but it is better than the default values I am getting > now. It is missing: > > SQL_MAXIMUM_STMT_OCTETS > SQL_MAXIMUM_STMT_OCTETS_DATA > SQL_MAXIMUM_STMT_OCTETS_SCHEMA > > and I've no idea what values they should have. I also had to change > SQL_SERVER_NAME to 'unknown' as it showed my database name. > > Martin
On Fri May 07 15:04:09 2010, PYTHIAN wrote: Show quoted text
> Ok I have applied that stuff on Trunk > > http://svn.perl.org/modules/dbd-oracle/trunk > > give it a test and I will close it > > cheers > John
Will do but it will have to wait until Monday now - sorry. Show quoted text
> On Mon Apr 26 04:21:30 2010, MJEVANS wrote:
> > On Mon Apr 26 04:06:30 2010, MJEVANS wrote: > >
> > > I believe this is the relevant code > > > http://search.cpan.org/~timb/DBI- > > > 1.609/lib/DBI/DBD.pm#Generating_the_get_info_method. > > > I'll see if I can generate it today. > > > > > > Martin
> > > > Try the attached file for a start. Might need to go through them and > > check each one but it is better than the default values I am getting > > now. It is missing: > > > > SQL_MAXIMUM_STMT_OCTETS > > SQL_MAXIMUM_STMT_OCTETS_DATA > > SQL_MAXIMUM_STMT_OCTETS_SCHEMA > > > > and I've no idea what values they should have. I also had to change > > SQL_SERVER_NAME to 'unknown' as it showed my database name. > > > > Martin
>
-- Martin J. Evans Wetherby, UK
Download (untitled) / with headers
text/plain 392b
On Fri May 07 15:06:39 2010, MJEVANS wrote: Show quoted text
> On Fri May 07 15:04:09 2010, PYTHIAN wrote:
> > Ok I have applied that stuff on Trunk > > > > http://svn.perl.org/modules/dbd-oracle/trunk > > > > give it a test and I will close it > > > > cheers > > John
> > Will do but it will have to wait until Monday now - sorry.
Done and it works now - thanks. Martin -- Martin J. Evans Wetherby, UK
confirmed fixed


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.