Re: DBD::SQL::Nano ORDER BY statements ending in ";"?

2013-12-13 Thread Charles Jardine
: Some command-line SQL tools use statement terminators, like a semicolon, to indicate the end of a statement. Such terminators should not normally be used with the DBI. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: (Fwd) Bug in Oracle 11g2 with DBD::Oracle

2013-03-05 Thread Charles Jardine
ocesses on the machine. I think that ora_connect_with_default_signals is misguided. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD::Oracle Schema different than User question

2012-11-15 Thread Charles Jardine
a way of specifying a schema name different from the user name, it needs fixing. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: Trying to use perl to call oracle stored proc to return an object.

2012-05-14 Thread Charles Jardine
BI::errstr\n"; > $sth->bind_param_inout(":p_Target",\$p_Target, 20) or die > "bind(target) err is $DBI::errstr"; # Should I specify a bind type and if > so, what type? > $sth->bind_param(":p_ID",$i) or die "bind(ID) err i

Re: [DBI-Users] Fwd: Problem to get UTF8-CSV-File

2011-12-23 Thread Charles Jardine
by doing NLS_LANG="GERMAN_GERMANY.**AL32UTF8" ./your-test-script greetings hermann -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: Building DBD::Oracle against Oracle full installs.

2011-11-08 Thread Charles Jardine
emo-rdbms.mk for 32-bit compilations in 32-bit environments. > Are you setting the 'LD_LIBRARY_PATH' ENV value?? I have never found this to be necessary except with Instant Clients. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, F

Building DBD::Oracle against Oracle full installs.

2011-11-07 Thread Charles Jardine
gt; Alternatively you can use Oracle Instant Client. > > In the unlikely event that a suitable *.mk file is installed > somewhere non-standard you can specify where it is using the -m > option: > perl Makefile.PL -m /path/to/your.mk > >

Re: DBD-Oracle - obtaining OCI handles from $dbh

2011-10-28 Thread Charles Jardine
irs_h,"$Config::Config{archlib}/CORE"]); # force addition of __restrict into keywords (asap) diff -ur Oracle-OCI-0.06.clean/utility.c Oracle-OCI-0.06.patched/utility.c --- Oracle-OCI-0.06.clean/utility.c 2001-09-01 01:03:05.0 +0100 +++ Oracle-OCI-0.06.patched/utility.

Re: (Fwd) Re: DBD::Oracle Slow cursors

2011-05-19 Thread Charles Jardine
ll you please stop spamming this list. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: symbol lookup error for DBD-Oracle 1.19 and Oracle instantclient 10.2.0.3

2011-05-18 Thread Charles Jardine
tarts. > $ENV{TNS_ADMIN} ||= "$ENV{ORACLE_HOME}/network/admin"; > > my $dbh = DBI->connect("dbi:Oracle:", [user], [password]) > || die "Couldn't connect to Oracle: $!"; > # > > # more stuff here that never executes > -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: possible to get $dbh from $sth?

2011-03-02 Thread Charles Jardine
ent $dbh of the statement handle. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

DBD::Oracle: Crash in object support code

2011-01-28 Thread Charles Jardine
hat a crash. John, does this give you enough to allow you to spot the bug? -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679 *** glibc detected *** /usr/local/bin/perl: free(): invalid size: 0x00968500 *** ===

DBD::Oracle: Object support on sparc platforms

2011-01-28 Thread Charles Jardine
Solaris 10. I can now run some of my production scripts, which use objects, on the sparc. I recommend that this patch be incorporated into version 1.28. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679 diff -r -u DBD-Oracle

Re: oracle multiple cursor sub query in different DBI versions

2010-08-09 Thread Charles Jardine
nt. I see your problem if I use the Oracle 11.2 instant client. The versions of everything else are the same. I am afraid that I have very little time to work on this, so a solution may not come quickly. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: oracle multiple cursor sub query in different DBI versions

2010-08-05 Thread Charles Jardine
eserved word. If I substitute 'dual' for 'table', I get the expected results. Can you let us know whether your problem can be reproduced with 'dual' as the FROM clause. If not, can you tell us what, if anything, is special about the actual FROM clause in your tes

Re: DBD-Oracle on AIX

2010-05-18 Thread Charles Jardine
this second problem. I would like to know either way. I have no big endian hardware on which to test these patches. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679 diff -r -u DBD-Oracle-1.24/dbdimp.h DBD-Oracle-1.24.patc

Re: DBD-Oracle 1.24a reports ORA-24334 in t/58object.t

2010-04-23 Thread Charles Jardine
On 22/04/10 14:54, Charles Jardine wrote: > On 21/04/10 18:56, Everett, Timothy S wrote: >> Thank you for the patch. This fixed the ORA-24334 problem. > > Thank you very much for testing the patch. I will try to ensure that > a similar fix gets into the next release of DBD:

Re: DBD-Oracle 1.24a reports ORA-24334 in t/58object.t

2010-04-23 Thread Charles Jardine
On 22/04/10 14:54, Charles Jardine wrote: > On 21/04/10 18:56, Everett, Timothy S wrote: >> Thank you for the patch. This fixed the ORA-24334 problem. > > Thank you very much for testing the patch. I will try to ensure that > a similar fix gets into the next release of DBD:

Re: DBD-Oracle 1.24a reports ORA-24334 in t/58object.t

2010-04-22 Thread Charles Jardine
need to bother the list with the output.) -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679 #!perl -w use DBI; use DBD::Oracle qw(ORA_RSET SQLCS_NCHAR); use strict; use Data::Dumper; DBI->trace(9); use Test::More tes

Re: DBD-Oracle 1.24a reports ORA-24334 in t/58object.t

2010-04-19 Thread Charles Jardine
1072 > fields = 10094d960 The field_count above should be 2. It is 2 * 2^16. Could you please try the attached patch. I think it will fix the problem, but I don't have any SPARC hardware to test it on. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.a

Re: Problems with empty/NULL lobs

2010-02-24 Thread Charles Jardine
has received no maintenance since August 2001. I have attached a patch I have used to make a version which can be built against a full Oracle 10.2 client. I am offering this patch *completely unsupported*. I simply do not have the time to maintain Oracle::OCI. -- Charles Jardine - Computing Service,

Re: 'External Connections" on different Oracle versions.

2009-10-29 Thread Charles Jardine
ORACLE_SID and using a tns alias. On Thu, 2009-10-29 at 16:51 +, Charles Jardine wrote: On 29/10/09 15:51, jeff wrote: External connections Orcale 8: If the remoter server has a username that matches the username of the remote client it will still authenticate. This work in our setup. You don&#

Re: 'External Connections" on different Oracle versions.

2009-10-29 Thread Charles Jardine
ular it is usne to find the server instance. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: 'External Connections" on different Oracle versions.

2009-10-29 Thread Charles Jardine
cess. Clashing linker names in the libraries will cause segfaults etc.. You have to find a way of establishing your two connections in different processes. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: Odd problem with DBI and Oracle

2009-10-26 Thread Charles Jardine
cal/lib/oracle/instantclient/lib ... the above is wrong. Lose the final '/lib' -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD::Oracle - problem with support for objects.

2009-10-07 Thread Charles Jardine
than happy to test release candidates for 1.24. Charles Jardine wrote: On 07/10/09 11:47, Martin Evans wrote: Charles Jardine wrote: I have encountered a problem with the 'extended' support for objects in DBD::Oracle. Specifically, if $dbh->{ora_objects} is true, any attempt to fetc

Re: DBD::Oracle - problem with support for objects.

2009-10-07 Thread Charles Jardine
On 07/10/09 11:47, Martin Evans wrote: Charles Jardine wrote: I have encountered a problem with the 'extended' support for objects in DBD::Oracle. Specifically, if $dbh->{ora_objects} is true, any attempt to fetch a nested table of objects causes perl to crash with a segme

DBD::Oracle - problem with support for objects.

2009-10-07 Thread Charles Jardine
y $dbh = DBI->connect('dbi:Oracle:', , {RaiseError=>1}); $dbh->{ora_objects} = 1; my $sth = $dbh->prepare("select * from groups"); $sth->execute; print("about to fetch\n"); $sth->fetch; print("fetched\n"); $sth->finish; $dbh->disconn

Re: Problem catching exceptions

2009-08-26 Thread Charles Jardine
oenloaded DBI-1.40 and DBD-Oracle-1,19 from CPAN and searched both distributions for the word 'Aborted', calls of abort(), and mentions of 'ABRT'. I have found nothing. I am suspicious of the package perl-DBI-1.40-8.x86_64.rpm. Where did it come from? Why is the version so old? DB

Re: DBD-Oracle 1.23 reports ORA-24334 in t/58object.t

2009-06-09 Thread Charles Jardine
servers must be irrelevant in this context. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD-Oracle 1.23 reports ORA-24334 in t/58object.t

2009-06-08 Thread Charles Jardine
it by adding bequeath_detach = yes to your sqlnet.ora file. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD::Oracle - forcing a number to look like a string in a placeholder

2009-05-08 Thread Charles Jardine
On 08/05/09 15:26, E R wrote: On Fri, May 8, 2009 at 5:40 AM, Charles Jardine wrote: You do not say which perl driver your are using to talk to Oracle. The DBD::Oracle driver binds all placeholders as strings by default. Are you using DBD::Oracle? Yes, I am using DBD::Oracle. What other

Re: DBD::Oracle - forcing a number to look like a string in a placeholder

2009-05-08 Thread Charles Jardine
942 Is there a way to ensure that the parameter is passed to Oracle as a string? You do not say which perl driver your are using to talk to Oracle. The DBD::Oracle driver binds all placeholders as strings by default. Are you using DBD::Oracle? -- Charles Jardine - Computing Service, University o

DBD::Oracle 1.23 - small bug in t/58object.t

2009-05-01 Thread Charles Jardine
ave used a password when running 'make test'. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679 --- DBD-Oracle-1.23/t/58object.t2009-04-29 16:04:18.0 +0100 +++ DBD-Oracle-1.23.patched/t/58object.t

PATCH: DBI: misuse of %lx and %ld formats

2009-02-27 Thread Charles Jardine
On 26/02/09 16:31, Charles Jardine wrote: I have built a 64 bit version of Perl 5.10.0 under SLES 10 (x86-64). I am now installing DBI and DBD::Oracle. Both of these modules produce alarming warnings at compile time. E.g. DBI.xs: In function ‘dbih_setup_fbav’: DBI.xs:1549: warning: format

Re: DBI: misuse of %lx and %ld formats

2009-02-27 Thread Charles Jardine
x86-64) RC3 passes all its tests both with and without the patch. With the patch, it compiles without warnings - *except* those which come from the two DBI macros mentioned above. -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223

Re: DBI: misuse of %lx and %ld formats

2009-02-27 Thread Charles Jardine
ll try to get a patch out today. Charles Jardine wrote: I have built a 64 bit version of Perl 5.10.0 under SLES 10 (x86-64). I am now installing DBI and DBD::Oracle. Both of these modules produce alarming warnings at compile time. E.g. DBI.xs: In function ‘dbih_setup_fbav’: DBI.xs:1549: warni

DBI: misuse of %lx and %ld formats

2009-02-26 Thread Charles Jardine
L dbiproxy Extracted dbiproxy from dbiproxy.PL with variable substitutions. dbiproxy syntax OK cp dbiproxy blib/script/dbiproxy /usr/local/perl/5.10.0-B/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/dbiproxy /usr/local/perl/5.10.0-B/bin/perl "-Iblib/arch" "-Iblib/lib" dbilogstrip.PL dbilogstrip Extracted dbilogstrip from dbilogstrip.PL with variable substitutions. dbilogstrip syntax OK cp dbilogstrip blib/script/dbilogstrip /usr/local/perl/5.10.0-B/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/dbilogstrip -- Charles Jardine - Computing Service, University of Cambridge c...@cam.ac.ukTel: +44 1223 334506, Fax: +44 1223 334679

Re: Issue with bind_param_inout and sys_refcursor

2009-02-11 Thread Charles Jardine
racle cannot cope with some of the columns in the actual cursor returned. Specifically, it is telling you that the types of the 9th, 18th, 19th and 20th columns are user-defined Object types. DBD::Oracle does not support these types. -- Charles Jardine - Computing Service, University of Cambridg

Re: ORA-00923

2009-01-20 Thread Charles Jardine
#x27;Commit','Other','Application', 'Configuration','Concurrency','Cluster','Administrative') AND ash.event_id(+) = evt.event_id GROUP BY evt.wait_class ORDER BY count(ash.event_id) DESC &qu

Re: DBD::Oracle install failed for fork test in t/10general.t

2008-06-17 Thread Charles Jardine
l /usr/local/cm58/lib/perl5/5.8.7/sun4-solaris-64 /usr/local/cm58/lib/perl5/5.8.7 /usr/local/cm58/lib/perl5/site_perl/5.8.7/sun4-solaris-64 /usr/local/cm58/lib/perl5/site_perl/5.8.7 /usr/local/cm58/lib/perl5/site_perl . Database Name is uclde $rc [256] $! [] $rc [0] $! [] end of script I was wondering if anyone knows the cause of why the test in 't/10general.t' failed. Albert Tom 2600 Camino Ramon San Ramon, Ca. 94583 925-823-9881 -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: Oracle procedure raises exception but looks to be successful from DBI

2008-01-28 Thread Charles Jardine
data found" exception. Oracle support have insisted that it is not a bug. It is part of the same mechanism by which select (select * from dual where 0=1) from dual returns a null value rather than an exception. I have been severely burnt buy this, and now avoid CALL altogether. -- Charles Jard

Re: Error always returned from system() after connecting to Oracl e 10 .2 on Solaris 64 bit

2007-11-09 Thread Charles Jardine
antec suggested I add $SIG{ CHLD } = 'DEFAULT'; after the Oracle connect to restore the default sig handler; this also corrects it. I wouldn't do that. Oralce must have some use for the SIGCHLD handler. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]

Re: Error always returned from system() after connecting to Oracle 10 .2 on Solaris 64 bit

2007-11-09 Thread Charles Jardine
using the bequeather? -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD::Oracle and Perl's internal representation of strings

2007-11-09 Thread Charles Jardine
/2005/08/msg27335.html As you will see, the thread never reached a satisfactory conclusion. Sadly, I have not been able to find the time to work on anything DBI related since that posting. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506

Re: dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Can't load..." cgi problem

2007-09-06 Thread Charles Jardine
Bruce Sears wrote: Charles Jardine wrote: Most versions of Unix impose restrictions on run time linking to prevent trojan horse attacks on privileged programs. The following extract from the man page to ld.so.1(1) on Solaris describes one version of this as follows: Secure processes

Re: dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Can't load..." cgi problem

2007-09-05 Thread Charles Jardine
crifice security to gain performance. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Can't load..." cgi problem

2007-08-31 Thread Charles Jardine
low the CGI user to search the directory? -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD::Oracle installation - make test failed - ORA-28000: accout locked

2007-06-15 Thread Charles Jardine
it 0;') is failing. I am afraid I do not have the time to investigate this myself at the moment, but it does need investigating. A good start would be to modify the test to print the value of $! after the failure. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: DBD Oracle connection problem

2007-02-05 Thread Charles Jardine
riable TWO_TASK to the same value. This is usually appropriate for connecting to remote databases. If you want to connect directly to a database on the local computer, the simplest way is to use the ORACLE_SID environment variable. You can set this within the perl program if you wish. Vis: $ENV{ORACLE_S

Re: DBD::Oracle: Row cache fetch ahead on cursor returned from PL/SQL stored proc?

2007-01-22 Thread Charles Jardine
ors. 2. Does you result set have LONG or LONG RAW columns? Caching is disabled if you have these. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: Unix: Oracle User Identified Externally

2006-12-21 Thread Charles Jardine
{AutoCommit=>0, RaiseError=>1, PrintError=>0, ShowErrorStatement=>1}); }; -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: Using Oracle Internet Directory (OID) instead of TNS Names

2006-08-17 Thread Charles Jardine
necessary is to set ORACLE_HOME to point as the same installation of Oracle as was used to compile and link DBD::Oracle. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: (Fwd) Just a quick question on the DBI perl mod

2006-05-24 Thread Charles Jardine
OP's problem is that the Oracle client installation he is using has been upgraded since his DBD::Oracle was compiled. Other possibilities are that the DBD::Oracle was compiled using a different ORACLE_HOME than tha used at run-time, or that dynamic linking is being done wrongly. -- Charles Ja

Re: how to set a DEFAULT value !!

2006-04-28 Thread Charles Jardine
wrong on this point, but I have checked the 9i and 10g OCI manuals, and I am depressingly sure that I am right. So - my point remains. DBD::Oracle, as designed, cannot implement the suggested feature. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44

Re: how to set a DEFAULT value !!

2006-04-27 Thread Charles Jardine
rt it. This seems to me to be a sufficient reason not to attempt to extend the DBI to provide this facility. Perhaps it would be better if the authors of DBDs which can support it could be persuaded to do it using a special bind value, as DBD:Pg apparently does does. -- Charles Jardine - Computing Se

Re: Dbi, Oracle, CursorName

2005-10-11 Thread Charles Jardine
There is a PL/SQL example of using rowid instead of WHERE CURRENT OF in the PL/SQL manual. Look for "Fetching Across Commits" in the index. -- Charles Jardine - Computing Service, University of Cambridge

Re: DBD::Oracle - prepare() and the utf-8 flag.

2005-08-19 Thread Charles Jardine
Tim Bunce wrote, on 17/08/2005 21:23: On Wed, Aug 17, 2005 at 06:01:03PM +0100, Charles Jardine wrote: Tim Bunce wrote, on 15/08/2005 14:36: On Mon, Aug 15, 2005 at 12:07:03PM +0100, Charles Jardine wrote: This what I am proposing for prepare. It already happens for values sent of returned

Re: DBD::Oracle - prepare() and the utf-8 flag.

2005-08-17 Thread Charles Jardine
Tim Bunce wrote, on 15/08/2005 14:36: On Mon, Aug 15, 2005 at 12:07:03PM +0100, Charles Jardine wrote: Peter J. Holzer wrote, on 14/08/2005 09:23: However, I am sure there exist tons of code which expect that perl strings are byte arrays in the client character set. This code would then

Re: DBD::Oracle - prepare() and the utf-8 flag.

2005-08-15 Thread Charles Jardine
Peter J. Holzer wrote, on 14/08/2005 09:23: On 2005-08-12 16:45:50 +0100, Charles Jardine wrote: The method $dbh->prepare($stmt) of DBD::Oracle ignores the state of the utf8 flag in the SV for $stmt. [ snip ] This is clearly a bug. It can affect any SQL statement which contains a

Re: DBD::Oracle - prepare() and the utf-8 flag.

2005-08-15 Thread Charles Jardine
Tim Bunce wrote, on 12/08/2005 22:21: On Fri, Aug 12, 2005 at 04:45:50PM +0100, Charles Jardine wrote: The method $dbh->prepare($stmt) of DBD::Oracle ignores the state of the utf8 flag in the SV for $stmt. [ details snipped ] Can anyone suggest a way forward? This change to Driver.

DBD::Oracle - prepare() and the utf-8 flag.

2005-08-12 Thread Charles Jardine
nces. 1. The bug must be present in all drivers which use Driver.xst :=( 2. I can't see at all how to fix it for DBD::Oracle. It seems that a fix _requires_ an incompatible change to Driver.xst. The bug cannot be fixed without change to the prototype for dbd_st_prepare. Howeve

Oracle nested cursors - a patch

2005-05-02 Thread Charles Jardine
is deemed acceptable in principle, I will be happy to re-work it against the latest development version. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679 diff -r -u -N DBD-Oracle-1.16/Oracle.pm DBD-Oracle-1.16-nested

Re: Oracle ref cursors - documentation patch.

2005-04-27 Thread Charles Jardine
Michael A Chase wrote, on 27/04/2005 13:42: On 04/27/2005 03:01 AM, Charles Jardine said: Here is a patch to the pod documentation of DBD::Oracle-1.16. The patch alters the section headed 'Binding Cursors'. > diff -ur DBD-Oracle-1.16.cursor-docs/Oracle.pm DBD-Oracle-1.16/Oracle.pm

Oracle ref cursors - documentation patch.

2005-04-27 Thread Charles Jardine
ite because a proper test requires access to views, including V$OPEN_CURSOR, which ordinary users cannot see. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679 diff -ur DBD-Oracle-1.16.cursor-docs/Oracle.pm DBD-Oracle-1.

Re: More on closing Oracle ref cursors

2005-04-22 Thread Charles Jardine
Michael Styer wrote: On Thu, 21 Apr 2005 18:12:08 +0100, "Charles Jardine" <[EMAIL PROTECTED]> said: I am sure that Oracle can close the cursors automatically in Oracle 9.2..6. I would be very grateful if you could find out for me if the same is true in your Oracle 8i database.

Re: More on closing Oracle ref cursors

2005-04-21 Thread Charles Jardine
Michael Styer wrote, on 21/04/2005 13:17: Charles Jardine said: I am still convinced that Michael should not need explicitly to close his cursors. I would be interested to know if tracing shows his cursors being destroyed in a timely fashion, since I suspect that something may be maintaining

Re: More on closing Oracle ref cursors

2005-04-21 Thread Charles Jardine
works if the bind is changed to match the test, rather than the documentation. I am still convinced that Michael should not need explicitly to close his cursors. I would be interested to know if tracing shows his cursors being destroyed in a timely fashion, since I suspect that something may be mainta

Re: More on closing Oracle ref cursors

2005-04-21 Thread Charles Jardine
Michael Styler wrote: So now I'm really confused. In this thread (http://www.mail-archive.com/dbi-users@perl.org/msg24109.html) Charles Jardine suggests that when the variable goes out of scope the cursor is closed, but you're saying they stay in existence. and Ron Reidy replied: W

Re: DBD::Oracle - closing cursors returned from PL/SQL

2005-03-17 Thread Charles Jardine
Michael A Chase tech wrote: On 03/16/2005 08:25 AM, Charles Jardine said: perldoc DBD::Oracle says, under "Binding Cursors": To close the cursor you (currently) need to do this: $sth3 = $dbh->prepare("BEGIN CLOSE :cursor; END;"); $sth3->bind_param_inout("

Oracle nested selects

2005-03-16 Thread Charles Jardine
give the reasonable error message > Field 2 has an Oracle type (116) which is not explicitly supported Is anyone thinking about the implementation of the fetching of nested result sets? If not, I might look at it myself. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTEC

DBD::Oracle - closing cursors returned from PL/SQL

2005-03-16 Thread Charles Jardine
oes anyone know why this was once thought to be necessary? -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Problem compiling Oracle::OCI 0.06 under DBI 1.46

2004-11-19 Thread Charles Jardine
on. I have attached a patch. I hope this helps someone. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679 diff -u -r Oracle-OCI-0.06/boot Oracle-OCI-0.06.patched/boot --- Oracle-OCI-0.06/bootThu Aug 30 16:49:

Re: DBD::Oracle 1.15 linking path problems with Oracle9i

2004-05-26 Thread Charles Jardine
to the run-time path of the Oracle libraries themselves. This binding took place at install time. (This is why some Oracle documentation says that soft links to ORACLE_HOME directories are not supported). This may be better with the Oracle 10g "Instant Client", but I haven't checke

Re: Named placeholders in DBD::Oracle - bug report

2004-02-11 Thread Charles Jardine
Tim Bunce wrote: On Thu, Feb 05, 2004 at 10:50:46AM +, Charles Jardine wrote: If not, would it be useful if I re-worked the patch for version 1.15. That would be great. Thanks. A re-worked patch to make placeholder binding in DBD::Oracle case insensitive is attached. -- Charles Jardine

Re: Named placeholders in DBD::Oracle - bug report

2004-02-05 Thread Charles Jardine
Tim Bunce wrote: Thanks for the info and the patch! Tim. On Fri, Oct 17, 2003 at 02:07:46PM +0100, Charles Jardine wrote: The problem: --- When Oracle matches placeholder names passed to OCIBindByName() with the actual placeholders in the SQL or PL/SQL, it uses a case-insensitive

Re: Trouble Installing DBD::Oracle on Red Hat 8

2003-10-28 Thread Charles Jardine
Tony Adolph wrote: Hi Garry, Install "the lot" has fixed the problem, thanks. But, and there always a but. We dont want to put the full Oracle 9.2 on the clients. Do you know if it is possible to unistall the rdbms packages and still have the DBI / DBD working? I can't answer for Red Hat. I am

Named placeholders in DBD::Oracle - bug report

2003-10-17 Thread Charles Jardine
a number */ @@ -1329,7 +1329,13 @@ if (SvGMAGICAL(ph_namesv)) /* eg if from tainted expression */ mg_get(ph_namesv); if (!SvNIOKp(ph_namesv)) { + int i; name = SvPV(ph_namesv, name_len); + if (name_len>31) + croak("Placeholder name too long (%s)", neatsvpv(ph_namesv,0)); + for (i=0; i === -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Re: Using perl 5.8.0?

2003-03-03 Thread Charles Jardine
f the required patch is in any 2.x version of mod_perl. -- Charles Jardine - Computing Service, University of Cambridge [EMAIL PROTECTED]Tel: +44 1223 334506, Fax: +44 1223 334679

Perl 5.7.3 - DBD::Oracle 1.12 compilation warning using PerlIO

2002-03-18 Thread Charles Jardine
file. Despite this DBD::Oracle passes all tests except t.long #10. (I will collect more information about this test failure and post another message.) Should the warnings be ignored? Is some systematic change required in DBD::Oracle to make it compatible with PerlIO? -- Charles Jardine