Re: column_info()'s COLUMN_DEF values - literal vs function

2009-05-28 Thread Steffen Goeldner
Tim Bunce wrote: I'd be interested in the COLUMN_DEF values for other databases and DBDs but it's not urgent. Hopefully others can fill in the gaps. (Oracle and mysql are two big missing databases at the moment.). DBD::Oracle (s/current_user/user) undef, 'TST', 'MARTIN', 'A', '3', 'NUMBER',

Re: Help with DBI::DBD interface

2007-11-06 Thread Steffen Goeldner
Martin Evans wrote: [...] This works. Out of interest, the set_err docs also say setting err to is an informational state. Under what conditions do/can you see those? If it helps, here is the thread where this topic evolved:

Re: Possible strange problem in DBI::type_info()

2006-11-22 Thread Steffen Goeldner
Cosimo Streppone wrote: Hi all, I found a strange problem in DBI::type_info(). I don't know much of DBI internals. Only found that sometimes, the 'type_info_all' structure returned by the driver is mangled by some shift() that happens in DBI::type_info(). This happens only for DBD::Informix

Re: ANNOUNCE: DBD::Oracle 1.19 release candidate

2006-10-06 Thread Steffen Goeldner
John Scoles wrote: http://svn.perl.org/modules/dbd-oracle/trunk/DBD-Oracle-1.19-RC1.zip Changes in DBD-Oracle 1.19 (scn rev 7879) Fixed execute_array to comply with DBI standard from Martin J. Evans, Xho Jingleheimerschmidt and others Fixed execute_array so it will not throw a Perl

Re: ANNOUNCE: DBD::Oracle 1.17 release candidate 2

2006-01-11 Thread Steffen Goeldner
Tim Bunce wrote: http://www.data-plan.com/public/DBD-Oracle-1.17-RC2.tar.gz On Oracle8: # failed test 34 at line 120. ORA-00904: invalid column name (DBD ERROR: error possibly near * indicator at char 15 in ' select *to_dsinterval(:p1) from dual ') not ok 34 Patch

Re: DBD::monetdb: prefix registration

2005-08-17 Thread Steffen Goeldner
Tim Bunce wrote: Thanks, applied. Tim. Fine, and I suppose you don't argue against a PAUSE registration? Steffen

DBD::monetdb: prefix registration

2005-08-16 Thread Steffen Goeldner
I'd like to register 'monetdb_' as prefix for DBD::monetdb, the DBI driver for MonetDB: http://monetdb.cwi.nl Steffen Index: DBI.pm === --- DBI.pm (revision 1457) +++ DBI.pm (working copy) @@ -308,6 +308,7 @@ ing_

Re: foreign_key_info ()

2005-08-16 Thread Steffen Goeldner
H.Merijn Brand wrote: Anyway to make this work *portable* ? e.g. Unify normalizes everything to as it was entered :) in Oracle all other operations work quite ok when using lower case table/column names: select, drop, create, ... The behavior for identifiers (quoted or not) is described by

Re: foreign_key_info ()

2005-08-16 Thread Steffen Goeldner
H.Merijn Brand wrote: [...] is there a way to make it comply to the documented fields in DBI? FWIW Unify does not support field renaming/aliasing in the select statement, so the only alternative I can think of is a view, which would alter the database, and that is not something to aim for.

Re: Multiple result sets and the $sth-more_results method (Mark 3)

2005-05-04 Thread Steffen Goeldner
Tim Bunce wrote: On the occasion of the 1st anniversary - where did the time go? When a batch is first executed the statement handle appears exactly as if the batch only contained the first sub-statement. The only exception is that the $sth-{NUM_OF_PARAMS} attribute equals the total number

Re: DBD::Sponge: When malloc throws in the sponge

2005-03-22 Thread Steffen Goeldner
Attached is a small benchmark script. The test platform is: CPU: x86 1994 MHz RAM: 500 MB OS : Win2k I redirected the output to circumvent the slow console: set ADO_DSN=Provider=MSDAORA;Data Source=prod;User ID=***;Password=*** perl Benchmark.pl Benchmark.out The output looks like:

Re: DBD::Sponge: When malloc throws in the sponge

2005-03-17 Thread Steffen Goeldner
Tim Bunce wrote: On Wed, Mar 16, 2005 at 01:13:00AM +0100, Steffen Goeldner wrote: Currently, a result set has to be completely materialized on the client before it can be fetched via DBD::Sponge: Large result sets may exhaust available memory. We could reduce memory usage at the cost of CPU time

DBD::Sponge: When malloc throws in the sponge

2005-03-16 Thread Steffen Goeldner
Currently, a result set has to be completely materialized on the client before it can be fetched via DBD::Sponge: my $cursor = ... my $rows = []; while ( !$cursor-eof ) { my $row = [ map { $cursor-fields-... $cursor-next; push @$rows, $row; } $cursor-close;

DBI 1.48: Warning: something's wrong at t/zvpp_11fetch.t line 3.

2005-03-16 Thread Steffen Goeldner
Looks like t/11fetch.t should return a true value. Patch attached. Steffen Index: t/11fetch.t === --- t/11fetch.t (revision 929) +++ t/11fetch.t (working copy) @@ -103,5 +103,6 @@ Benchmark::timethis(10, sub { go([EMAIL

Re: Savepoint support proposal

2005-03-15 Thread Steffen Goeldner
FTR: ADO supports nested transactions: http://msdn.microsoft.com/library/en-us/ado270/htm/mdmthbegintrans.asp?frame=no The level of nesting may be limited, e.g. Access and Foxpro support 5 levels, Oracle and SQL Server only 1. With some bookkeeping, it should be possible to emulate savepoints

DBI::DBD::Metadata: type_info_all

2005-02-10 Thread Steffen Goeldner
A DBI driver should pass the following tests: my @ti = $dbh-type_info; ok( @ti,'type_info'); my $tia = $dbh-type_info_all; is( ref $tia,'ARRAY','type_info_all'); my $idx = shift @$tia; is( ref $idx,'HASH','index hash'); However, the last test fails with an implementation of

Re: DBD::ODBC: MANIFEST.SKIP

2005-02-09 Thread Steffen Goeldner
Jeff Urlwin wrote: Thanks. Applied. And now you can try: make distcheck make manifest Steffen

Re: DBD::ODBC: crash in ping (after disconnect)

2005-02-08 Thread Steffen Goeldner
Jeff Urlwin wrote: That's probably the best thing, but there are probably more places... After reviewing the code, I think I don't like the duplication of the henv -- but the short term patch is whenever you see a SQLFreeEnv, also set the imp_dbh-henv to SQL_NULL_ENV. Sorry I haven't looked at

DBD::ODBC: MANIFEST.SKIP

2005-02-08 Thread Steffen Goeldner
Hi Jeff, attached is a small patch for MANIFEST.SKIP to ignore svn administrative files. Steffen Index: MANIFEST.SKIP === --- MANIFEST.SKIP (revision 859) +++ MANIFEST.SKIP (working copy) @@ -1,4 +1,5 @@ \bRCS\b +\.svn\b

Re: DBD::ODBC: crash in ping (after disconnect)

2005-02-07 Thread Steffen Goeldner
Steffen Goeldner wrote: O.k., attached. Looks like SQLError receives a freed SQL_HANDLE_ENV. Not sure, but I think I fixed the problem. In dbd_db_login6, I found: imp_dbh-henv = imp_drh-henv; /* needed for dbd_error */ In dbd_db_disconnect, I found: imp_drh-henv = SQL_NULL_HENV; and added

Re: DBD::ODBC: crash in ping (after disconnect)

2005-01-20 Thread Steffen Goeldner
Martin J. Evans wrote: Caught a SIGSEGV at C:/opt/perl/site/lib/DBD/ODBC.pm line 208 That is the tables call in the ping method. The only time you only have an environment handle dbd_error: err_rc=-1 rc=0 s/d/e: 0/0/21631648 is when not connected to the DSN. The driver manager is supposed to

DBD::ODBC: crash in ping (after disconnect)

2005-01-19 Thread Steffen Goeldner
Hi Jeff, I have the following test script: use sigtrap; use DBI(); use Test::More tests = 5; my $dbh = DBI-connect or die $DBI::errstr; ok( $dbh-{$_}, $_) for 'Active'; ok( $dbh- $_ , $_) for 'ping'; ok( $dbh- $_ , $_) for 'disconnect'; ok(!$dbh-{$_}, $_) for 'Active'; ok(!$dbh-

Re: DBI::DBD: attribute handling (outer/inner handles, $h-STORE vs. $h-{})

2004-12-17 Thread Steffen Goeldner
Tim Bunce wrote: Actually it's only the first letter that matters (so foo_Bar is okay, if you like that kind of thing :) I've changed the text to read: : Note the prefix Idrv_ in the attribute names: it is required that : all your private attributes use a lowercase prefix unique to your driver. :

Re: DBI::DBD: attribute handling (outer/inner handles, $h-STORE vs. $h-{})

2004-12-17 Thread Steffen Goeldner
Tim Bunce wrote: I've added this: [...] Comments, or patches against subversion, most welcome. Fixed this daVinci bug: - my ($drh, $dbname, $user, $auth, $attr) = @_; + my ($drh, $dr_dsn, $user, $auth, $attr) = @_; as well as a few typos and the like. Steffen Index: lib/DBI/DBD.pm

DBI::DBD: err/errstr/state

2004-12-13 Thread Steffen Goeldner
DBI 1.31 suggests that lexically scoped variables should be passed to _new_dbh(): http://search.cpan.org/~timb/DBI/Changes#Changes_in_DBI_1.31,_29th_November_2002 DBI 1.33 suggests that drivers should no longer pass these variables to _new_drh() or _new_dbh():

Re: DBI::DBD::Metadata: VERSION, SQL_DRIVER_NAME

2004-11-12 Thread Steffen Goeldner
Tim Bunce wrote: On Mon, Nov 08, 2004 at 10:14:52AM +0100, Steffen Goeldner wrote: [...] Attached is a small patch for DBI::DBD::Metadata. $VERSION is a lexical (why?), thus I dropped the package names. I added a special handler for the SQL_DRIVER_NAME case, because the file name of the ODBC

DBI::DBD::Metadata: VERSION, SQL_DRIVER_NAME

2004-11-08 Thread Steffen Goeldner
] (previously [EMAIL PROTECTED]), Jochen Wiedmann [EMAIL PROTECTED], -Steffen Goeldner [EMAIL PROTECTED], +Steffen Goeldner [EMAIL PROTECTED], and Tim Bunce [EMAIL PROTECTED]. =cut

Re: ANNOUNCE: DBD::Oracle 1.16 release candidate for testing (RC8)

2004-10-22 Thread Steffen Goeldner
Tim Bunce wrote: ON Thu, Oct 21, 2004 at 10:41:28AM +0100, Tim Bunce wrote: On Thu, Oct 21, 2004 at 07:52:42AM +0200, Honza Pazdziora wrote: t/25plsql is now clean. The perl -Mblib yields Can't select from function (ORA-06553: PLS-561: character set mismatch on value for parameter 'ARG2'

Re: ANNOUNCE: DBD::Oracle 1.16 release candidate for testing (RC8)

2004-10-21 Thread Steffen Goeldner
Tim Bunce wrote: Yes, another release candidate! Perl 5.6.1, Win2k, Borland 5.5, Oracle Client 8.1.7.4.15, Oracle Server 8.1.7.2.1 Using C:/temp/DBD-Oracle-1.16-8/blib t\01baseok t\10general.ok t\15nls.ok t\20select..ok

Re: DBD::Oracle: 'no prototype' warnings (Borland)

2004-10-05 Thread Steffen Goeldner
Tim Bunce wrote: On Fri, Oct 01, 2004 at 01:46:45PM +0200, Steffen Goeldner wrote: Tim Bunce wrote: I can live with assuming support for ANSI C style prototypes since we already effectively require perl 5.6 and that requires ANSI C. O.k., attached are the KR = ANSI patches for dbdimp.c and oci8.c

Re: DBD::Oracle: 'no prototype' warnings (Borland)

2004-10-01 Thread Steffen Goeldner
Tim Bunce wrote: I can live with assuming support for ANSI C style prototypes since we already effectively require perl 5.6 and that requires ANSI C. O.k., attached are the KR = ANSI patches for dbdimp.c and oci8.c. Steffen --- dbdimp.orig Thu Sep 30 14:26:04 2004 +++ dbdimp.cThu Sep 30

Re: DBD::Oracle: 'no prototype' warnings (Borland)

2004-09-30 Thread Steffen Goeldner
Tim Bunce wrote: On Wed, Sep 22, 2004 at 03:52:09PM +0200, Steffen Goeldner wrote: Compiling DBD::Oracle with Borland C++ 5.5, I have a bunch of warnings: [...] 1. ignore the warnings :-( 2. suppress the warnings (-w-8065) 3. Force __STDC__=1 4. Force C++ compile (-P): 5. Remove the #if/#else

DBD::Oracle: 'no prototype' warnings (Borland)

2004-09-22 Thread Steffen Goeldner
Compiling DBD::Oracle with Borland C++ 5.5, I have a bunch of warnings: Warning W8065 ...: Call to function 'OCI...' with no prototype in function because oci.h includes the KR headers: #if defined(__STDC__) || defined(__cplusplus) #include ociapr.h #include ociap.h #else #include

Re: ANNOUNCE: DBD::Oracle 1.16 release candidate for testing

2004-07-16 Thread Steffen Goeldner
Tim Bunce wrote: On Thu, Jul 15, 2004 at 10:35:14AM +0200, Steffen Goeldner wrote: Tim Bunce wrote: Warning W8075 dbdimp.c 82: Suspicious pointer conversion in function GetEnvOrRegKey Fixed. I'm still a bit nervous about returning this pointer to a locally declared buffer

Re: ANNOUNCE: DBD::Oracle 1.16 release candidate for testing

2004-07-15 Thread Steffen Goeldner
Tim Bunce wrote: and now [drum roll please...] http://homepage.eircom.net/~timbunce/DBD-Oracle-1.16-rc3-20040714.tar.gz Makefile.PL: Using DBI 1.43 (for perl 5.006001 on MSWin32-x86-multi-thread) installed in C:/opt/perl/site/lib/auto/DBI Configuring DBD::Oracle ...

Re: ANNOUNCE: DBD::Oracle 1.16 release candidate for testing

2004-07-14 Thread Steffen Goeldner
Tim Bunce wrote: A release candidate of DBD::Oracle 1.16 is available for testing at: http://homepage.eircom.net/~timbunce/DBD-Oracle-1.16-rc1-20040713.tar.gz I wonder if only Borland is that nitpicking: Error E2140 dbdimp.c 72: Declaration is not allowed here in function GetEnvOrRegKey

Re: ANNOUNCE: DBI 1.43 release candidate for testing

2004-06-30 Thread Steffen Goeldner
Tim Bunce wrote: A release candidate for DBI 1.43 is available for testing at: http://homepage.eircom.net/~timbunce/DBI-1.43-rc1-20040628.tar.gz Looks good for Perl 5.6.1, MSWin32, Borland 5.5: t\01basicsok 6/109 skipped: various reasons t\02dbidrvok

Re: Devel-Cover-0.43 and Borland

2004-05-07 Thread Steffen Goeldner
Paul Johnson wrote: Hmmm. That's strange. I suppose $^O is still MSWin32 under Borland and NT 4? Yes: Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread ... But I see you use Test and

Re: Devel-Cover-0.43 and Borland

2004-05-04 Thread Steffen Goeldner
Paul Johnson wrote: That's odd. I would have expected at least three skipped messages, or did not just not send them? I sent the complete output. Urgh. That probably indicates a crash while Devel::Cover is trying to collect the last of the data. Is is possible for you to test under

Devel-Cover-0.43 and Borland

2004-05-03 Thread Steffen Goeldner
Hi Paul, just compiled Devel-Cover-0.43 with BC++ 5.5, perl 5.6.1, WinNT 4.0 - looks good: Using C:/temp/Devel-Cover-0.43/blib t\aaliasok t\aalias1...ok t\abranch_return_subok t\acond_and.ok t\acond_branch..ok

Re: [ANNOUNCE] Devel::Cover 0.35

2004-04-30 Thread Steffen Goeldner
Hi Paul, compiling/linking Devel-Cover-0.41 with Borland C++ 5.5 gives: Error: Unresolved external '_get_elapsed' because gettimeofday is missing. Would it be possible that Devel::Cover reuses the Time::HiRes implementation? Steffen

Re: ANNOUNCE: DBI 1.41 release candidate 2 for testing

2004-02-24 Thread Steffen Goeldner
Tim Bunce wrote: A second release candidate is available for testing at: http://homepage.eircom.net/~timbunce/DBI-1.41-rc2-20040222.tar.gz Sorry, I'm latish. The attached patch corrects a few minor typos. Furthermore, my Borland compiler reports a warning: Warning W8019 DBI.xs 1166:

Re: ANNOUNCE: DBI 1.41 release candidate for testing

2004-02-20 Thread Steffen Goeldner
Tim Bunce wrote: [...] Well spotted. I can replicate that with this change to the tests: --- t/08keeperr.t (revision 56) +++ t/08keeperr.t (working copy) @@ -88,7 +88,7 @@ is($warn, 0); is(@handlewarn, 1 0 0); -$dbh-set_err(0, (got warn), AA001); +$dbh-set_err(0,

Re: ANNOUNCE: DBI 1.41 release candidate for testing

2004-02-18 Thread Steffen Goeldner
The attached patch is a resubmission of this one: http://www.xray.mpe.mpg.de/mailing-lists/dbi/2003-11/msg00209.html Steffen--- DBI.origTue Feb 17 13:18:08 2004 +++ DBI.pm Wed Feb 17 22:42:04 2004 @@ -4193,11 +4193,10 @@ LOCAL_TYPE_NAME = 12, MINIMUM_SCALE = 13,

Re: PRECISION: bytes or chars ?

2004-02-18 Thread Steffen Goeldner
Tim Bunce wrote: On Tue, Feb 10, 2004 at 03:53:16PM -0800, Dean Arnold wrote: I don't think ODBC provides any clear guidance. It defines 2 distinct descriptor elements: COLUMN_SIZE: the size in bytes DISPLAY_SIZE: the size in characters And PRECISION is only defined wrt numerics;

Re: DBD::ADO, Win32::OLE and Variant type

2004-01-29 Thread Steffen Goeldner
Jan Dubois wrote: VT_DATE values used to be returned as strings, but that doesn't give you any control over how the date is formatted. I would say the user has - although limited - control with the global LCID, right? A long time ago I changed Win32::OLE to return them as VARIANTs. If

Re: DBI, DBD::ADO and SUCCESS_WITH_INFO

2004-01-16 Thread Steffen Goeldner
Tim Bunce wrote: The RaiseError/PrintError/HandleError mechanism only applies at the point where the DBI is abount to return control to the application. It isn't triggered by a nested calls (where select*_* calls prepare()) I was planning to implement HandleWarn the same way but I've

Re: DBI version 2 - 3 API change suggestions

2004-01-16 Thread Steffen Goeldner
Henrik Tougaard wrote: Better support for transactions. At some point I predict that the RDBMS vendors will come up with transaction handles, and we need somewhere to hold them - I foresee several concurrent transactions on the same database handle. Not to mention nested transactions (or

Re: DBI, DBD::ADO and SUCCESS_WITH_INFO

2004-01-16 Thread Steffen Goeldner
Tim Bunce wrote: join \n, ... Very old (pre perl5!) versions of the DBI spec (or DBPerl as it then was) mentioned that specifically. I'll add it to the DBI docs. Indeed, that's what actually happens (for $errstr). But $err is another story (and don't ask for $state). Imagine that my

Re: DBI, DBD::ADO and SUCCESS_WITH_INFO

2004-01-13 Thread Steffen Goeldner
Tim Bunce wrote: My current plan is to add a $h-{HandleEvent} = sub { ... } hook that can be used for SUCCESS_WITH_INFO and other events the driver may want to communicate back to an application. Meanwhile I suggest that you add a $h-{ado_event} = sub { ... } and and use that however you

DBI, DBD::ADO and SUCCESS_WITH_INFO

2004-01-12 Thread Steffen Goeldner
I need an advice on how to deal with SUCCESS_WITH_INFO from a DBD writers point of view. If ADO places an error into it's error collection, this error may be one of 4 kinds (oledberr.h): 00 - Success 01 - Informational 10 - Warning 11 - Error A good example for the first case is given

Re: Announce: DBI 1.40 release candidate available

2004-01-08 Thread Steffen Goeldner
Steffen Goeldner wrote: Tim Bunce wrote: http://homepage.eircom.net/~timbunce/DBI-1.40-rc1-20040107.tar.gz I'd appreciate some testing on a variety of platforms, perls and drivers. For my Perl 5.6.1, MSWin32, Borland 5.5., 03handle.t failed: Commenting out line 91 (print Dumper

DBD::Oracle: NUMBER type

2003-12-16 Thread Steffen Goeldner
Rerunning this test http://www.xray.mpe.mpg.de/mailing-lists/dbi/2001-03/msg00626.html against an Oracle 9.2.0.4 results in TYPEPRECSCALE NAME 3 38 0 CINTEGER 8 0 0 CNUMBER 3 38 0 CNUMBER_38_0 3 11 2 CNUMBER_11_2 3

DBI: type_info_all doc

2003-11-17 Thread Steffen Goeldner
The attached patch removes a doubled NUM_PREC_RADIX entry from the index hash (and adjusts the following indexes). BTW: These sentences sound somewhat contradicting: The index values shown above (e.g., NULLABLE = 6) are for illustration only. Drivers may define the fields with a different

DBI 1.38: Undefined subroutine DBD::_::db::croak called at DBI.pm line 1496

2003-11-04 Thread Steffen Goeldner
Hi Tim, the attached patch adds 'Carp::' to all unqualified calls to carp() and croak(). You'll get the error message above with something like perl -MDBI -e 'DBI-connect()-primary_key($c,$s,$t)' Steffen*** DBI.origFri Aug 22 23:25:40 2003 --- DBI.pm Mon Nov 03 16:14:28 2003

Re: DBI::DBD: STORE

2003-10-27 Thread Steffen Goeldner
Tim Bunce wrote: On Fri, Oct 24, 2003 at 11:00:55AM +0200, Steffen Goeldner wrote: Is there any value in returning a value (pun intended) from STORE? E.g.: sub STORE { ... return 1; For dbd_db_STORE_attrib(), DBI::DBD states: The return value is TRUE if you have

DBI::DBD: STORE

2003-10-24 Thread Steffen Goeldner
Is there any value in returning a value (pun intended) from STORE? E.g.: sub STORE { ... return 1; For dbd_db_STORE_attrib(), DBI::DBD states: The return value is TRUE if you have handled the attribute or FALSE otherwise. Does the same rule apply to STORE()? If so, where is the

Re: DBI::DBD: STORE

2003-10-24 Thread Steffen Goeldner
H.Merijn Brand wrote: On Fri 24 Oct 2003 11:00, Steffen Goeldner [EMAIL PROTECTED] wrote: Is there any value in returning a value (pun intended) from STORE? E.g.: sub STORE { ... return 1; For dbd_db_STORE_attrib(), DBI::DBD states: The return value is TRUE

Re: DBI: trace / trace_msg

2003-10-13 Thread Steffen Goeldner
Tim Bunce wrote: [...] Yes, it's a bug. Try this: --- DBI.xs 2003/08/21 22:34:45 11.32 +++ DBI.xs 2003/10/10 15:23:34 @@ -2354,10 +2354,10 @@ if (debug) { SAVEI32(DBIS-debug); /* fall back to orig value later */ + DBIS-debug = debug;

Re: DBI: trace / trace_msg

2003-10-10 Thread Steffen Goeldner
Tim Bunce wrote: On Wed, Oct 08, 2003 at 09:23:25AM +0200, Steffen Goeldner wrote: What's the expected output of the attached script? Something hopefully useful. That's about all that's guaranteed. Why do you ask? As my replies show, something changed between 1.35 and 1.36: traces

DBI: trace / trace_msg

2003-10-08 Thread Steffen Goeldner
What's the expected output of the attached script? Steffen trace.pl Description: Perl program

Re: DBI: trace / trace_msg (1.38)

2003-10-08 Thread Steffen Goeldner
DBI 1.38-nothread dispatch trace level set to 9 trace_msg DISPATCH (DBI::db=HASH(0x815cdb4) rc1/1 @3 g0 ima5 pid#12698) at ../trace.pl line 8 - trace_msg in DBD::_::common for DBD::Sponge::db (DBI::db=HASH(0x815cdb4)~0x8217e78 '= 9 =' 9) = 9 =- trace_msg= 1 at ../trace.pl line

Re: DBI: trace / trace_msg (1.36)

2003-10-08 Thread Steffen Goeldner
... DBI 1.36-nothread dispatch trace level set to 7 DBI 1.36-nothread dispatch trace level set to 6 DBI 1.36-nothread dispatch trace level set to 5 DBI 1.36-nothread dispatch trace level set to 4 DBI 1.36-nothread dispatch trace level set to 3 DBI 1.36-nothread dispatch

Re: DBD::Oracle beta available for testing

2003-09-26 Thread Steffen Goeldner
Tim Bunce wrote: On Thu, Sep 25, 2003 at 12:39:05PM +0200, Steffen Goeldner wrote: Steffen Goeldner wrote: [...] I try to find those symbols and the library ... Thanks to Andy Hassall, I found the symbols in orasql8.dll. I did not install Pro*C and have a $ORACLE_HOME

Re: DBD::Oracle beta available for testing

2003-09-25 Thread Steffen Goeldner
Tim Bunce wrote: Is it an alpha or a beta? Who knows? Probably more alpha than beta but it it what it is and you're welcome to hit on it. Perl 5.6.1, MSWin32, Borland 5.5, Oracle 8.1.7 dmake test: t\base...ok t\cursor.ok t\generalok t\long...ok 53/372# failed test 60 at line

Re: DBD::Oracle beta available for testing

2003-09-25 Thread Steffen Goeldner
Steffen Goeldner wrote: Perl 5.6.1, MSWin32, Borland 5.5, Oracle 8.1.7 [...] error: ORA-24801: illegal parameter value in OCI lob function (DBD ERROR: OCILobWriteAppend) Metalink lists such an error as Bug #886191, fixed in 8.1.7. Hmmm. Steffen

Re: RC2 (was: Announce: DBI 1.38 release candidate)

2003-08-22 Thread Steffen Goeldner
All tests successful, 9 tests skipped. Files=34, Tests=1215, 160 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) perl -Mblib -MDBI -e DBI-installed_versions Using C:/temp/DBI-1.38-RC2/blib Perl: 5.006001(MSWin32-x86-multi-thread) OS : MSWin32 (4.0) DBI

Re: Announce: DBD::ADO 2.7

2003-08-22 Thread Steffen Goeldner
Steffen Goeldner wrote: [...] I'm not sure if we need use_ok('DBD::ADO') in all cases. Thus, the BEGIN {} block could be dropped. Now I'm sure ;-) Steffendiff -u t-orig/09null.t t/09null.t --- t-orig/09null.t Fri Aug 22 00:37:46 2003 +++ t/09null.t Fri Aug 22 11:24:32 2003 @@ -14,8

DBD::ADO: ex/OpenSchema.pl

2003-08-22 Thread Steffen Goeldner
Hi Thomas, attached is my current OpenSchema script. It uses DBD::ADO::TypeInfo to list the SchemaEnum's. Steffen OpenSchema.pl Description: Perl program

DBD::ADO: ex/Provider.pl

2003-08-22 Thread Steffen Goeldner
Hi Thomas, here is a script that lists all OLE DB Provider. Yes, it scans the complete CLSID tree of the registry. I doubt there is a better way, because my harddrive sounds similar if I open a .udl file. Steffen Provider.pl Description: Perl program

Re: Announce: DBD::ADO 2.7

2003-08-22 Thread Steffen Goeldner
Thomas A. Lowery wrote: DBD::ADO Release 2.7 is available from http://stlowery.net/DBD-ADO-2.7.tar.gz ... t\09null..You tried to run a test without a plan! Gotta have a plan. t\11curs..You tried to run a test without a plan! Gotta have a plan. t\15func..You tried to run a test

Re: Announce: DBI 1.38 release candidate

2003-08-21 Thread Steffen Goeldner
Tim Bunce wrote: [...] If all is well please reply to the list with a short message giving the output of: perl -MDBI -e 'DBI-installed_versions' Perl: 5.006001 OS : MSWin32 DBI : 1.38 DBD::Sponge : 11.09 DBD::Oracle : 1.14

DBD::ADO 2.6: types in metadata result sets

2003-08-18 Thread Steffen Goeldner
Hi Thomas, attached is a small patch to provide correct types in metadata result sets. Steffen*** ADO.origSat Nov 09 21:08:44 2002 --- ADO.pm Sun Aug 17 22:45:38 2003 *** *** 1141,1148 $conn-{CursorLocation} = $tmpCursorLocation;

Problem: DBI::DBD::dbd_postamble dmake

2003-06-06 Thread Steffen Goeldner
While installing e.g. DBD-Oracle-1.14, dmake aborts with: dmake.exe: Error -- Multiply defined recipe for target C Dmake doesn't like what the current DBI::DBD::dbd_postamble generates: # --- MakeMaker postamble section: # --- This section was generated by DBI::DBD::dbd_postamble()

Re: Release Candidate of DBD::Oracle 1.14 available

2003-04-03 Thread Steffen Goeldner
Tim Bunce wrote: Here's a Release Candidate of DBD::Oracle 1.14: http://homepage.eircom.net/~timbunce/DBD-Oracle-1.14-20020325gamma.tar.gz Sorry for the late reply (it applies to the final release too). Attached is the output of 'perl Makefile.PL'. The warning I can't find the header

Re: Gamma release of DBD::Oracle: DBD-Oracle-1.13-20030313gamma.tar.gz

2003-03-14 Thread Steffen Goeldner
Tim Bunce wrote: [...] I've attached a patch and I'd be grateful if you, or anyone else, could test it for me. Looks good: Using C:/tmp/DBD-Oracle-1.13-gamma-patched/blib t\base...ok t\cursor.ok t\generalok t\long...ok t\ph_typeok t\plsql..ok t\reauth.skipped

Re: Gamma release of DBD::Oracle: DBD-Oracle-1.13-20030313gamma.tar.gz

2003-03-13 Thread Steffen Goeldner
Tim Bunce wrote: Thanks for the feedback. I've put an updated release candidate here: http://homepage.eircom.net/~timbunce/DBD-Oracle-1.13-20030313gamma.tar.gz Any feedback most welcome. Assuming there are no significant problems I'll probably release this tomorrow. I encountered

DBI-1.33, BC5.5 and ftime

2003-02-28 Thread Steffen Goeldner
Attached is a small patch for 'non underscore systems'. Steffen*** DBI-1.33-orig/DBI.xsThu Feb 27 01:22:44 2003 --- DBI-1.33/DBI.xs Thu Feb 27 21:36:47 2003 *** *** 1818,1823 --- 1818,1827 return when.tv_sec + (when.tv_usec / 100.0); # else/*

Re: DBI v1.32 - Code generator for $dbh-type_info_all (and Q about $dbh-type_info)

2002-12-18 Thread Steffen Goeldner
Jonathan Leffler wrote: [...] Can anyone explain the bit in the type_info method description (cribbed from the ODBC documentation, I'm sure) about 'ordered by DATA_TYPE first and then by how closely each type maps to the corresponding ODBC SQL data type, closest first'. SQL/CLI defines the

Re: Metadata methods in DBI

2002-12-16 Thread Steffen Goeldner
Tim Bunce wrote: [...] Note that DATETIME_SUB is misspelled with an SQL_ prefix in the docs. That's wrong. Fixed now. Really? http://msdn.microsoft.com/library/en-us/odbc/htm/odbcsqlgettypeinfo.asp?frame=false [...] 2. What does the DATA_TYPE field contain when this field contains

DBI-1.29: Wrong number of arguments in call of macro 'fp_dup'

2002-07-16 Thread Steffen Goeldner
I got the following errors (WinNT, Borland): Error E2219 DBI.xs 221: Wrong number of arguments in call of macro 'fp_dup' in function dbi_bootinit Error E2188 DBI.xs 221: Expression syntax in function dbi_bootinit Summary of my perl5 (revision 5 version 6 subversion 1) configuration:

Re: MS Access

2002-06-27 Thread Steffen Goeldner
Tim Harsch wrote: Forgive my naivity (or just flawed understanding) but how would one go about creating a DBD::Access? For instance DBD::Oracle is built on OCI, does Access have a similar network protocol? I thought that ODBC was about the only MS supported method of communicating to

Re: DBI-1.25: dmake.exe: Error -- Don't know how to make `config'

2002-06-13 Thread Steffen Goeldner
Steffen Goeldner wrote: Although 'dmake' has no problems with empty rules (i.e. w/o recipes) in general, it complains about the DBI-1.25 Makefile (WinNT, Borland): dmake.exe: Error -- Don't know how to make `config' I satisfied 'dmake' with a '$(NOOP)' (see attached patch). It's

Re: DBD::ADO RC 2.4_06

2002-04-16 Thread Steffen Goeldner
Thomas A. Lowery wrote: Attached is RC 2.4_06 ... let me know. In t/15func.t, $dbh-column_info() will take a long time on a big database. Attached is a more specific test script for column_info(). Steffen #!/usr/bin/perl -I./t # vim:ts=2:sw=2:ai:aw:nu $| = 1; use strict; use ADOTEST();

Re: DBD::ADO RC 2.4_06

2002-04-16 Thread Steffen Goeldner
I tested DBD::ADO RC 2.4_06 with: set DBI_DSN=dbi:ADO:Provider=Microsoft.Jet.OLEDB.4.0;Data Source=mytest.mdb make test and got (among other things): t\02simpleok 7/23Use of uninitialized value in string eq at t\02simple.t line 46. Attached is a possible patch. Steffen ***

Re: DBD::ADO: column_info

2002-04-11 Thread Steffen Goeldner
Attached is a small patch for column_info(). $TypeName was set before the test $ti-{COLUMN_SIZE} = $ColSize; Thus, if no type has a large enough COLUMN_SIZE (hypothetical case), $TypeName may contain a wrong type name. Now, $TypeName remains undefined in this case. Steffen ***

Re: DBD::Oracle: table_info, PUBLIC schema

2002-03-21 Thread Steffen Goeldner
Tim Bunce wrote: On Wed, Mar 20, 2002 at 12:46:39PM +0100, Steffen Goeldner wrote: Tim Bunce wrote: On Wed, Mar 20, 2002 at 10:36:47AM +0100, Steffen Goeldner wrote: Should I add 'PUBLIC' to the enumeration of schemas, e.g.: Probably. Especially if Oracle's own ODBC driver

DBD::Oracle: table_info, PUBLIC schema

2002-03-20 Thread Steffen Goeldner
Tim Bunce wrote: On Tue, Mar 19, 2002 at 04:41:33PM +0100, Steffen Goeldner wrote: Thus, I'd better change: , decode( t.OWNER, 'PUBLIC', '', t.OWNER ) TABLE_SCHEM to , t.OWNER TABLE_SCHEM ? Yesp, looks like it. Done (see attachement). Should I add 'PUBLIC

Re: DBD::Oracle: table_info, PUBLIC schema

2002-03-20 Thread Steffen Goeldner
Tim Bunce wrote: On Wed, Mar 20, 2002 at 10:36:47AM +0100, Steffen Goeldner wrote: Should I add 'PUBLIC' to the enumeration of schemas, e.g.: Probably. Especially if Oracle's own ODBC driver does. No, it doesn't. Should I add 'PUBLIC' nevertheless? It may be useful for some generic

Re: catalog method arguments, empty strings ()

2002-03-19 Thread Steffen Goeldner
Tim Bunce wrote: On Mon, Mar 18, 2002 at 12:05:28PM +0100, Steffen Goeldner wrote: A more realistic example would be for drivers that return empty strings or NULL for the catalog portion. Currently, DBD::Oracle's table_info() method returns '' - NULL - undef for the PUBLIC pseudo-schema

catalog method arguments, empty strings ()

2002-03-15 Thread Steffen Goeldner
Steffen Goeldner wrote: P.S.: It seems I'll have TO DO some 'empty string' research. This is yet another case where ODBC and SQL/CLI differ :-( ODBC is quite clear about pattern value arguments: http://msdn.microsoft.com/library/en-us/odbc/htm/odbcpattern_value_arguments.asp | Passing

Re: SQL_ATTR_METADATA_ID and undef vs vs % etc

2002-03-13 Thread Steffen Goeldner
Tim Bunce wrote: On Mon, Mar 11, 2002 at 05:46:01PM +0100, Steffen Goeldner wrote: + =head2 Catalog Functions + + All catalog functions accept arguments in order to restrict the result sets. + Passing Cundef to an optional argument does not constrain the search for + that argument

DBD::Oracle, Catalog Functions, ESCAPE

2002-03-12 Thread Steffen Goeldner
+ Some arguments in the catalog functions accept Bsearch patterns (strings + containing '_' and/or '%'), e.g. the C$table argument of Ccolumn_info(). Running some tests with 'pattern value arguments', I encountered missing ESCAPE characters in the implementation of the DBD::Oracle catalog

Re: SQL_ATTR_METADATA_ID and undef vs vs % etc

2002-03-11 Thread Steffen Goeldner
Tim Bunce wrote: Steffen (and anyone else interested), I think we need to mention SQL_ATTR_METADATA_ID in the DBI docs somewhere (even though we don't include an API for it) because we're assuming that (for ODBC drivers) it has a certain value. Also, I think we need to document the

Re: indentifier case

2002-03-08 Thread Steffen Goeldner
Jeff Zucker wrote: Tim Bunce wrote: On Mon, Mar 04, 2002 at 08:50:45AM -0800, Jeff Zucker wrote: Hmm, I just checked the SQL92 standard and if I'm reading it correctly the situation is ugly. Section 5.2.13 appears to say that a regular identifier and a delimited identifier are

DBD::ODBC: get_info(), KEYWORDS truncated

2002-03-05 Thread Steffen Goeldner
Currently, long get_info() return values (eg SQL_KEYWORDS) are truncated That's because the buffer has a static size of 256 The attached patch allocates the buffer dynamically and reallocates it if needed Steffen *** DBD-ODBC-038-orig/dbdimpc Tue Feb 12 19:11:56 2002 --- dbdimpcMon Mar 04

Re: DBD::ODBC: get_info(), KEYWORDS truncated

2002-03-05 Thread Steffen Goeldner
[EMAIL PROTECTED] wrote: On 05-Mar-2002 Steffen Goeldner wrote: Currently, long get_info() return values (e.g. SQL_KEYWORDS) are truncated. That's because the buffer has a static size of 256. The attached patch allocates the buffer dynamically and reallocates it if needed

DBD::Oracle: $sth-{TYPE}

2002-02-28 Thread Steffen Goeldner
Steffen Goeldner wrote: Tim Bunce wrote: On Thu, Feb 21, 2002 at 12:14:31PM +0100, Steffen Goeldner wrote: Should type_info_all() depend on ora_server_version(), DBD::Oracle::ORA_OCI() or both? Both I think, since you need both to be =8 to be able to use the types in typical

Re: DBD::ODBC: connect() attributes

2002-02-27 Thread Steffen Goeldner
Jeff Urlwin wrote: Are you not getting ODBC 3.x behavior by default? Yes, at least for the Oracle ODBC driver. In the past I used MS ODBC Test to capture test data like http:[EMAIL PROTECTED]/msg00359.html where I could set SQL_ATTR_ODBC_VERSION. Now it's possible to do it with DBD::ODBC

DBD::Oracle: type_info_all()

2002-02-21 Thread Steffen Goeldner
Since DBI supports the SQL/CLI LOB datatypes - SQL_CLOB and - SQL_BLOB and DBI supports the temporal datatype - SQL_TYPE_TIMESTAMP and DBD::Oracle has ora_server_version(), we could provide a more specific type_info_all() (see attached patch). Should type_info_all() depend on

  1   2   >