old database newbie --bad data in foxpro file?

2003-11-12 Thread Michael Higgins
Hello, all -- Some reports coming as CSV from a front-end/database written in/for an old version of foxpro are broken because of misplaced newlines. To illustrate: my @data; my $oldtotal; while (@data = $sth->fetchrow_array()){ $oldtotal= $total; map { $total += $_=~m#[\r\f]+#g } @data; print

Re: DBIx::Recordset struggles to pass tests

2003-11-12 Thread Terrence Brannon
Michael Gray wrote: source databases available, or I would do some testing and patching myself. There's no free version of Oracle for Windows is there? I run Cygwin. Hmm, I wonder what could be causing this to happen. I have only open Jeff's pointed out the free version. This morning, 11

Re: [dbi] Re: Usage message when using DBI->data_sources

2003-11-12 Thread Tim Bunce
Okay, thanks. Tim. p.s. The best way to identify a release candidate is with a post-it note on your monitor to remind you to install the full release over it :) On Wed, Nov 12, 2003 at 03:29:36PM -, Martin J. Evans wrote: > > On 12-Nov-2003 Tim Bunce wrote: > > On Wed, Nov 12, 2003 at 01:48

Re: No warning when missing driver?

2003-11-12 Thread Tim Bunce
On Wed, Nov 12, 2003 at 04:19:47PM +0100, Jos I. Boumans wrote: > > On 12-nov-03, at 14:27, Tim Bunce wrote: > > >>if i tell DBI to connect to a postgres db, but i don't have DBD::Pg > >>installed, it will not give me a warning of any kind, including when > >>DBI->trace(5) is set, that > >>i do n

Re: How do I get the row id of the last insert?

2003-11-12 Thread Rudy Lippan
On Wed, 12 Nov 2003, Dan Anderson wrote: > If I insert a row into mySQL with an indexed auto incrementing column, > id, how do I get the id of the last inserted row? > For right now, you do this: $insertid = $dbh->{'mysql_insertid'}; However, In the next version of DBD::mysql you will be able

RE: How do I get the row id of the last insert?

2003-11-12 Thread Burak Gürsoy
or see the "last_insert_id" section in DBI 1.38* documentation... *The last_insert_id method was added in DBI 1.38. -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 10:14 PM To: Colin Wetherbee Cc: [EMAIL PROTECTED] Subject: Re: How do I

Re: How do I get the row id of the last insert?

2003-11-12 Thread Dan Anderson
> By the way, this isn't the place to ask that question. Sorry, PHP has a function to get the last row id. Didn't realize I had to use SQL. That explains why my search found nothing. :-) Thanks again, Dan

Re: How do I get the row id of the last insert?

2003-11-12 Thread Colin Wetherbee
Dan Anderson said: > If I insert a row into mySQL with an indexed auto incrementing column, > id, how do I get the id of the last inserted row? Use the LAST_INSERT_ID() function. Or, see these pages: http://www.mysql.com/doc/en/Getting_unique_ID.html http://www.mysql.com/doc/en/mysql_insert_id.ht

How do I get the row id of the last insert?

2003-11-12 Thread Dan Anderson
If I insert a row into mySQL with an indexed auto incrementing column, id, how do I get the id of the last inserted row? Thanks in advance, Dan

Re: help for DBD::Oracle module

2003-11-12 Thread paul . boutros
Did you have to make it yourself, or could you just use ppm? >From a DOS prompt try: ppm install ftp://ftp.esoftmatic.com/outgoing/DBI/DBD-Oracle.ppd Quoting Diego Gabriele <[EMAIL PROTECTED]>: > Hi, > > I'm not able to create the Makefile for DBD module. The OS is winXP, I'm > using ActivePerl

Re: No warning when missing driver?

2003-11-12 Thread Jos I. Boumans
On 12-nov-03, at 14:27, Tim Bunce wrote: if i tell DBI to connect to a postgres db, but i don't have DBD::Pg installed, it will not give me a warning of any kind, including when DBI->trace(5) is set, that i do not have the necessary driver installed. It simply silently fails. Works for me: $ per

help for DBD::Oracle module

2003-11-12 Thread Diego Gabriele
Hi, I'm not able to create the Makefile for DBD module. The OS is winXP, I'm using ActivePerl 5.8.0 and DBD-Oracle-1.14. DBI are already installed. Oracle Home is c:\oracle\ora92. Perl is in c:\Perl. When I type: perl Makefile.pl the console output is following: Using DBI 1.38 installed in

Re: possible memory leak in either DBI or DBD:Oracle (or maybe oci??)

2003-11-12 Thread Roman Hochleitner
On Thu, 6 Nov 2003, Tim Bunce wrote: > On Wed, Nov 05, 2003 at 03:15:40PM +0100, Roman Hochleitner wrote: > > > > Hi! > > > > We are using Oracle 8.1.7 server/client under Redhat 7.1 perl 5.6.0 with > > DBD::Oracle V1.14 and DBI V1.37. > > > > With the attached script I can reproduce a memory

Re: [dbi] Re: Usage message when using DBI->data_sources

2003-11-12 Thread Martin J. Evans
On 12-Nov-2003 Tim Bunce wrote: > On Wed, Nov 12, 2003 at 01:48:14PM -, Martin J. Evans wrote: >> Tim, >> >> Whilst I'm trying to narrow this issue down to just DBI or DBD::ODBC here is >> a >> level 2 trace (against the now installed DBD::ODBC 1.06): >> >> [EMAIL PROTECTED] DBD-ODBC-1.06]$

Re: [dbi] Re: Usage message when using DBI->data_sources

2003-11-12 Thread Tim Bunce
On Wed, Nov 12, 2003 at 01:48:14PM -, Martin J. Evans wrote: > Tim, > > Whilst I'm trying to narrow this issue down to just DBI or DBD::ODBC here is a > level 2 trace (against the now installed DBD::ODBC 1.06): > > [EMAIL PROTECTED] DBD-ODBC-1.06]$ perl -w x.pl > DBI 1.38-nothread dispat

Re: Usage message when using DBI->data_sources

2003-11-12 Thread Martin J. Evans
I have now tried DBI 1.35 and DBD::ODBC 1.06 and they were OK so this would indicate a problem in DBI 1.35? [EMAIL PROTECTED] DBD-ODBC-1.06]# perl -e 'use DBD::ODBC; print $DBD::ODBC::VERSION;' [EMAIL PROTECTED] DBD-ODBC-1.06]# perl -e 'use DBI;print $DBI::VERSION;' [EMAIL PROTECTED] DBD-ODBC-1.06

Re: Fw: Compile of DBD Solid

2003-11-12 Thread Patricia . Markiewicz
I got this to compile. Someone in the Openview forum gave me the FTP site for a Solaris server: ftp://ftp.solidtech.com/pub/products/EmbeddedEngine/3.52/solidSDKe352ssx.tar.Z The Solid Tech web site doesn't list any download information, so its not easy to find. This tarball did have the li

RE: [dbi] Re: Usage message when using DBI->data_sources

2003-11-12 Thread Martin J. Evans
Tim, Whilst I'm trying to narrow this issue down to just DBI or DBD::ODBC here is a level 2 trace (against the now installed DBD::ODBC 1.06): [EMAIL PROTECTED] DBD-ODBC-1.06]$ perl -w x.pl DBI 1.38-nothread dispatch trace level set to 2 -> DBI->install_driver(ODBC) for linux perl=5.008 p

Re: Fw: Compile of DBD Solid

2003-11-12 Thread Patricia . Markiewicz
There was no libsolodbc.so file in the Library that I downloaded from the Solid FTP Site. Joe [EMAIL PROTECTED]

Re: possible memory leak in either DBI or DBD:Oracle (or maybe oci??)

2003-11-12 Thread Tim Bunce
On Wed, Nov 12, 2003 at 12:34:08PM +0100, Roman Hochleitner wrote: > > repeated connects to 2 or more 8.1.7 DBs OR schematas DOES leak > repeated connects to only ONE (or more) 9.2.0 DB DOES leak > so the conclusion could be that it looks like the problem is more/only > related to the DBD::Oracl

Re: No warning when missing driver?

2003-11-12 Thread Tim Bunce
On Tue, Nov 11, 2003 at 05:44:40PM +0100, Jos I. Boumans wrote: > Hi, > > I've just noticed something slightly inconvenient: > > if i tell DBI to connect to a postgres db, but i don't have DBD::Pg > installed, it will not give me a warning of any kind, including when > DBI->trace(5) is set, tha

Re: DBIx::Recordset struggles to pass tests

2003-11-12 Thread Michael Gray
On Tue, 11 Nov 2003, Terrence Brannon wrote: > Michael Gray wrote: > > >Hs anyone had any luck getting DBIx::Recordset to pass its tests using > >recent versions of perl, DBI and DBD::Oracle? > > > Angus Lees and myself have several patches for Recordset, most are > archived in the embperl ma

No warning when missing driver?

2003-11-12 Thread Jos I. Boumans
Hi, I've just noticed something slightly inconvenient: if i tell DBI to connect to a postgres db, but i don't have DBD::Pg installed, it will not give me a warning of any kind, including when DBI->trace(5) is set, that i do not have the necessary driver installed. It simply silently fails. On

Re: Usage message when using DBI->data_sources

2003-11-12 Thread Tim Bunce
On Wed, Nov 12, 2003 at 09:28:54AM -, Martin J. Evans wrote: > Hi, > > I have: > > [EMAIL PROTECTED] DBD-ODBC-1.06]$ perl -MDBI -e 'DBI->installed_versions' > Perl: 5.008 > OS : linux > DBI : 1.38 > DBD::mysql : 2.9002 > DBD::Sponge : 11

Usage message when using DBI->data_sources

2003-11-12 Thread Martin J. Evans
Hi, I have: [EMAIL PROTECTED] DBD-ODBC-1.06]$ perl -MDBI -e 'DBI->installed_versions' Perl: 5.008 OS : linux DBI : 1.38 DBD::mysql : 2.9002 DBD::Sponge : 11.09 DBD::Proxy : 0.2004 DBD::ODBC : 1.05 DBD::Multiplex : 0.9 DBD