20SqlServer test in DBD::ODBC recommends driver upgrade - why?

2003-06-11 Thread Martin J. Evans
, insert some values and retrieve them again to make sure they are correctly inserted. I am in the process of getting verbose output for the test but if someone knows the reason for the upgrade advice I'd love to know. Thanks. Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: [dbi] RE: 20SqlServer test in DBD::ODBC recommends driver upgrade - why?

2003-06-12 Thread Martin J. Evans
they are correctly inserted. I am in the process of getting verbose output for the test but if someone knows the reason for the upgrade advice I'd love to know. I wish I remembered more and documented it... Regards, Jeff -- Martin J. Evans Easysoft Ltd, UK Development

No error string and unitialized value in concatenation

2003-06-13 Thread Martin J. Evans
-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/site_perl . Thanks, Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: [dbi] Force ODBC version 2 behavior

2003-06-16 Thread Martin J. Evans
probably not as useful now, but it allowed get_info and get_type_info to return correct/updated information that ODBC 2.x didn't permit/provide. but as far as I can see if you set it to 2 it will call SQLSetEnvAttr for ODBC 2. Martin -- Martin J. Evans Easysoft Ltd, UK

RE: [dbi] RE: No error string and unitialized value in concatenation

2003-06-20 Thread Martin J. Evans
Jeff, one new issue with 1.06. o line 297 of the generated Makefile contains @$(NOOP) but those are spaces leading up to it instead of a tab. The line at fault is actually Makefile.PL line 427. o the problem I reported (email subject line) still exists after I fixed above and

RE: [dbi] Time Field M$ Access

2003-06-26 Thread Martin J. Evans
I could be wrong but I think it is the ':' in the time that is causing the problem. The DBD thinks the ':' is a parameter. Insert the dates/times with placeholders instead and I think you'll find it works. e.g. INSERT INTO tblCar (date_now,time_now) VALUES(?,?) Martin -- Martin J. Evans

RE: [dbi] DBD::ODBC 1.06 Make fails.

2003-07-08 Thread Martin J. Evans
Edit Makefile.PL and look for the lines like this: config :: $(changes_pm) @$(NOOP) You'll find the chrs in front of @$(NOOP) are spaces and they should be a tab. Fix and rerun perl on the Makefile.PL. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 08-Jul-2003 Anil Menon wrote

LongReadLen = 0 definition

2004-12-10 Thread Martin J. Evans
) at ./tut2_9.pl line 24. Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: [dbi] DBD::ODBC make test fails

2004-12-21 Thread Martin J. Evans
you've got iodbc you may need to delete the unixodbc line above from the Makefile and rerun perl Makefile.PL. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 20-Dec-2004 [EMAIL PROTECTED] wrote: Well I am having some trouble getting DBD::ODBC up and running and so here I am. I

RE: [dbi] DBD::ODBC, unixODBC, FreeTDS, MS-SQL, lazy DL, dbd_db_login/SQLSetConnectOption err=-2

2005-01-04 Thread Martin J. Evans
the unixODBC you have just built. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 04-Jan-2005 Honza Pazdziora wrote: Hello, I have succesfully installed freetds-0.62.3-1.1.fc3.rf from Dag Wieers's rpm repository unixODBC-2.2.9-42 unixODBC-devel-2.2.9-42

RE: [dbi] Re: (Fwd) DBD Install

2005-01-28 Thread Martin J. Evans
Just in case it helps anyone else I had a similar problem. I installed Oracle 9.2.0.1.0 with the Administrator install and did not have an oci.h. I went back and did a custom install to find Oracle Call Interface was not installed by default. Thanks Jeff for the pointer. Martin -- Martin J

RE: [dbi] Re: Problem with DBD::ODBC (via unixODBC) connection to remote ADABAS-11 database

2005-02-22 Thread Martin J. Evans
The DontDlClose was a suggestion to stop the seg faulting on exit. When I said you can use DSN=emanuel-sbart;UID=*;PWD=*; I did of course mean to say you need to keep the 'dbi:ODBC' on the front. i.e. 'dbi:ODBC:DSN=emanuel-sbart;UID=*;PWD=*;' Martin -- Martin J. Evans Easysoft Ltd, UK

Re: [dbi] Re: Problem with DBD::ODBC (via unixODBC) connection to remote ADABAS-11 database

2005-02-22 Thread Martin J. Evans
On 22-Feb-2005 Walter Obermiller wrote: Martin, Martin J. Evans wrote: The DontDlClose was a suggestion to stop the seg faulting on exit. When I said you can use DSN=emanuel-sbart;UID=*;PWD=*; I did of course mean to say you need to keep the 'dbi:ODBC' on the front. i.e

Re: [dbi] Re: Problem with DBD::ODBC (via unixODBC) connection to remote ADABAS-11 database

2005-02-22 Thread Martin J. Evans
. BTW I only pointed out you can used dbi:ODBC:DSN=x;UID=y;PWD=z; because you were mentioning the dsn not found and no default data source message. Does the plain old DBI-connect('dbi:ODBC:fred', 'user', 'pass') work? Martin -- Martin J. Evans Easysoft Ltd, UK Development On 22-Feb-2005 Walter

Re: [dbi] Re: Problem with DBD::ODBC (via unixODBC) connection to remote ADABAS-11 database

2005-02-23 Thread Martin J. Evans
) SQL_MAX_DSN_LENGTH || dsnHasDriverOrDSN(dbname) !dsnHasUIDorPWD(dbname)) { sprintf(dbname_local, %s;UID=%s;PWD=%s;, dbname, uid, pwd); Martin -- Martin J. Evans Easysoft Ltd, UK Development --sql.log-- [ODBC][25635

Re: [dbi] Re: Problem with DBD::ODBC (via unixODBC) connection to remote ADABAS-11 database

2005-02-23 Thread Martin J. Evans
method. Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: [dbi] YA Stored Procedure Question

2005-03-02 Thread Martin J. Evans
-- Martin J. Evans Easysoft Ltd, UK Development On 01-Mar-2005 David N Murray wrote: Hi all, Since we seem to be on the subject of Stored Procedures, I thought I'd throw my problem out there, since I can't figure out what I'm doing wrong. The SP builds a temp table, updates the source

RE: [dbi] RE: Accessing MS Access through the DBI ODBC

2005-03-31 Thread Martin J. Evans
msdn.microsoft.com which lists all the possibilities. This URL in our FAQ lists many of them: http://www.easysoft.com/products//faq_answer.phtml?ID=686product=2002 Martin -- Martin J. Evans Easysoft Ltd, UK Development On 31-Mar-2005 Moreno, Javier wrote: Kevin, I tried removing the user and the pwd

RE: Install Issue With DBD-ODBC Module

2005-04-08 Thread Martin J. Evans
Have you got sqltypes.h in /home/harbinger/tle/6_0/odbcHPUX/include? Is this the full C compiler or the one that comes with HP-UX for rebuilding the kernel? Martin -- Martin J. Evans Easysoft Ltd, UK Development On 07-Apr-2005 Cory Cox wrote: I am trying to install the DBD-ODBC version 1.13

RE: [dbi] Segmentation fault on RHEL4

2005-05-17 Thread Martin J. Evans
threaded or not (on some Linuxes/glibcs). Try adding DontDLClose = 1 to the driver entry in odbcinst.ini. Try rebuilding unixODBC and MySQL with -pthread to make them all the same. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 16-May-2005 Stephen More wrote: I have compiled DBD-ODBC-1.13

Re: Segmentation fault on RHEL4

2005-05-18 Thread Martin J. Evans
(or wherever your Perl is) run -MDBI -e 'my $dbh = DBI-connect(dbi:ODBC:xxx, user, pass);' When it crashes enter bt for a back trace. Of course to do this you'd need to install DBI and DBD::ODBC or look at the make test to see how to run when DBD::ODBC is not installed. Martin -- Martin J

Re: Segmentation fault on RHEL4

2005-05-19 Thread Martin J. Evans
=2002 You need to try PERL_DL_NONLAZY=1. If the problem goes away then see the rest of the faq above for how to make sure unixODBC is built without the RTLD_GROUP flag to dlopen. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 19-May-2005 Stephen More wrote: Here is the info from my bt

RE: [dbi] Re: Segmentation fault on RHEL4

2005-05-19 Thread Martin J. Evans
You can fix it for yourself by removing the RTLD_GROUP from unixODBC and rebuilding it. See the FAQ I pointed you at. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 19-May-2005 Stephen More wrote: The interesting thing is I can't see unixODBC - I thought you were using unixODBC

RE: [dbi] DSN's

2005-06-02 Thread Martin J. Evans
? export DBI_DSN='dbi:ODBC:host=something.something.something;port=1521;dbname=na me' I'm very new to all this and would appreciate as much detailed help as possible. Thanks for any info -- Martin J. Evans Easysoft Ltd, UK Development

Re: [dbi] DSN's and DRIVER attribute

2005-06-03 Thread Martin J. Evans
Subject: Re: [dbi] DSN's For the DSN-less connections, see http://www.connectionstrings.com -- great resource. Dan On 6/2/05, Martin J. Evans [EMAIL PROTECTED] wrote: Sharon, The string after ODBC: is usually a DSN name as in: DBI-connect(dbi:ODBC:mydsn,...) or DBI-connect(dbi:ODBC:DSN

Re: Attempt to initiate a new SQL Server operation with results pending.

2005-06-22 Thread Martin J. Evans
will get hangs). BTW, the example in the pod should be $dbh-{odbc_SQL_ROWSET_SIZE} = 2 not $dbh-{SQL_ROWSET_SIZE} = 2. I would seriously suggest you try and avoid multiple active statements - there is nearly always a SQL or some other way. Martin -- Martin J. Evans Easysoft Ltd, UK Development

Re: Attempt to initiate a new SQL Server operation with results pending.

2005-06-22 Thread Martin J. Evans
Terence, I could be wrong but from what little I remember from TDS I think that unless you enable a server-side cursor, once you start retrieving data from the server you have no choice but to keep reading it until it is exhausted - this is why SQL Server ODBC driver only supports 1 active

RE: [dbi] ODBC and tables 'v' views

2005-06-23 Thread Martin J. Evans
there is an equivalent in DBD::ODBC. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 23-Jun-2005 Ron Savage wrote: Hi Folks Sorry if you've seen this, but I did not receive a copy. (This is under WinXP, with a DSN pointing to an MS Access db). Is there an ODBC function call

RE: [dbi] Re: Attempt to initiate a new SQL Server operation with results pending.

2005-06-23 Thread Martin J. Evans
Daniel, On 22-Jun-2005 Daniel Kasak wrote: Martin J. Evans wrote: As far as I am aware this is a limitation of the TDS protocol used and your example code will not work unless you force a server-side cursor (see DBD::ODBC pod and look for odbc_SQL_ROWSET_SIZE but I warn you that you really

RE: [dbi] Re: Attempt to initiate a new SQL Server operation with results pending.

2005-06-28 Thread Martin J. Evans
On 27-Jun-2005 Daniel Kasak wrote: Jeff Urlwin wrote: Please read DBD::ODBC pod. Specifically the section on the odbc_cursortype. Jeff I just added odbc_cursortype= DBI::SQL_CURSOR_DYNAMIC to our connection string, and that didn't help things at all. Martin J. Evans ( see other

RE: [dbi] DBD::ODBC, FreeTDS, SQL Server and 'money' column type

2005-07-12 Thread Martin J. Evans
server says money has). Martin -- Martin J. Evans Easysoft Ltd, UK Development On 12-Jul-2005 Daniel Kasak wrote: Hi all. I'm using the process: my $sth = $dbh-prepare ( update xxx set a=?, b=?, c=? where d=? ); $sth-execute( $a, $b, $c, $d ); to update data in a SQL Server database

Oracle ncahr versus nvarchar2 and unicode data

2005-07-18 Thread Martin J. Evans
-8 data to insert and run $sth-execute again it inserts the original data again and not the changed $x. I've not confirmed this yet with other drivers, but I am /fairly/ sure with DBD::ODBC you don't have to call bind_param again if the bound data is changed. Thanks. Martin -- Martin J. Evans

RE: Oracle ncahr versus nvarchar2 and unicode data

2005-07-19 Thread Martin J. Evans
fields and reading it via Oracle's ODBC driver in MS Access - where it looks fine. But, retrieving it in Perl does not display the same results. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 18-Jul-2005 Martin J. Evans wrote: Hi, Wondered if anyone can tell me if I've misunderstood

RE: Oracle ncahr versus nvarchar2 and unicode data

2005-07-19 Thread Martin J. Evans
or should I have done something else? Martin -- Martin J. Evans Easysoft Ltd, UK Development On 19-Jul-2005 Martin J. Evans wrote: Hi, I have some further information on my problem. The insertion of UTF-8 data into nchar seems to work like it does for nvarchar2; it appears

RE: MsSQL DBD::ODBC IsNull and undef

2005-07-25 Thread Martin J. Evans
directory, run you Perl script perl /path_to_my_script/xxx.pl 4. send me the resulting esoobclient.log_PID which will appear in /tmp (where PID is the process ID). Martin -- Martin J. Evans Easysoft Ltd, UK Development On 25-Jul-2005 Brian Becker wrote: I am trying to bind an undef

Re: MsSQL DBD::ODBC IsNull and undef

2005-07-26 Thread Martin J. Evans
. Martin -Original Message- From: Martin J. Evans [mailto:[EMAIL PROTECTED] Sent: Monday, July 25, 2005 12:59 PM To: dbi-users@perl.org Subject: RE: MsSQL DBD::ODBC IsNull and undef Brian, I presume by Easysoft you mean Easysoft ODBC-ODBC Bridge? If so, can you run your test script

RE: [dbi] Re: MsSQL DBD::ODBC IsNull and undef

2005-07-26 Thread Martin J. Evans
)) { /* if is_inout, shouldn't we null terminate the buffer and send * it, instead?? */ @@ -2766,6 +2767,7 @@ } else { rgbValue = NULL; phs-cbValue = SQL_NULL_DATA; + cbColDef = phs-cbColDef; } } else { Martin -- Martin J. Evans Easysoft Ltd, UK

Re: MsSQL DBD::ODBC IsNull and undef

2005-07-26 Thread Martin J. Evans
before and should make your case work BUT it is a very quick hack. I'll try and find time to put a better patch together for Jeff. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 26-Jul-2005 Brian Becker wrote: Was this supposed to happen? A large # of tests now fail... t/07bind

RE: [dbi] error string being lost in DBD::ODBC

2005-08-02 Thread Martin J. Evans
(see the err_handler) below. See t/20SQLServer.t for an example of this. setting this (from DBD::ODBC pod). Martin -- Martin J. Evans Easysoft Ltd, UK Development On 01-Aug-2005 Mitchell, Adam R wrote: I'm having a problem where the error string from a raiserror (inside

RE: [dbi] DBD::ODBC for Solaris 2.9 Perl 5.6.1 or 5.8.2

2005-08-16 Thread Martin J. Evans
In what way is it not working - I /think/ these versions work for me and I only see a require for Perl 5.4 (DBD::ODBC) and 5.6 (DBI). Martin -- Martin J. Evans Easysoft Ltd, UK Development On 12-Aug-2005 [EMAIL PROTECTED] wrote: Guys, Could you please let me know if there is a DBD::ODBC

RE: RFC : AJAX + DBI = DBIx::LiveGrid

2005-09-16 Thread Martin J. Evans
-- Martin J. Evans Easysoft Ltd, UK Development On 14-Sep-2005 Jeff Zucker wrote: I've created a module that marries DBI with AJAX to support LiveGrids - dynamically updateable portions of web pages that work like google maps. As you scroll through the grid, the contents are buffered

RE: RFC : AJAX + DBI = DBIx::LiveGrid

2005-09-16 Thread Martin J. Evans
in SQL::Abstract::Limit and it generates SQL that does not return the correct rows (as quoted in my previous email) unless order is specified. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 16-Sep-2005 Martin J. Evans wrote: Jeff, Nice one. However, it does not quite work with my DBD

RE: [dbi] Re: RFC : AJAX + DBI = DBIx::LiveGrid

2005-09-16 Thread Martin J. Evans
On 16-Sep-2005 Jeff Zucker wrote: Martin J. Evans wrote: Jeff, The $order parameter is required if $rows is specified. Ah, yes, of course, thanks for spotting that. To confirm, does it scroll correctly when you do specify an order (i.e. by clicking on a column heading to toggle

RE: Numeric value out of range error

2005-09-28 Thread Martin J. Evans
pass your parameters in as strings and leave the parameter type off the bind call. Martin -- Martin J. Evans Easysoft Ltd, UK Development SAMPLE CODE = #!/usr/local/bin/perl -Tw use strict; use DBI; my $dsn = dbi:ODBC:dsn_IRB; our $dbh = DBI-connect($dsn, '', '', {AutoCommit

RE: Numeric value out of range error

2005-09-28 Thread Martin J. Evans
and I think that didn't end up anywhere because after presenting the problem and a fix being provided, odbc_default_bind_type was introduced. Martin -- Martin J. Evans Easysoft Ltd, UK Development Lee Anne -Original Message- From: Martin J. Evans [mailto:[EMAIL PROTECTED] Sent

DBD::mysql dbdimp.c does not compile - solution

2005-11-02 Thread Martin J. Evans
, bind_type_guessing); I fixed be moving the declarations. Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: DBD::mysql dbdimp.c does not compile - solution

2005-11-02 Thread Martin J. Evans
oops, forgot to say this was the DBD::mysql developers release 3.0002_3. Martin -- Martin J. Evans Easysoft Ltd, UK Development On 02-Nov-2005 Martin J. Evans wrote: Just in case this helps anyone else. I've just tried DBD::mysql for the first time and it failed to compile with gcc 2.95.3

ShowErrorStatement changing how my script runs

2005-11-08 Thread Martin J. Evans
. loses an error Any ideas? Martin -- Martin J. Evans Easysoft Ltd, UK Development

Is selectrow_array really supposed to return an empty list

2005-12-06 Thread Martin J. Evans
- as in: perl -e 'my @a=(); print $#a;' outputs -1 for an empty list, not 0 for a list containing an undef. It does not seem to matter what the driver is - I tried dbi::ODBC too. Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: Why can I find postings on google groups that I never saw on this list

2005-12-06 Thread Martin J. Evans
groups that made this clear. Martin -- Martin J. Evans Easysoft Ltd, UK Development

Re: Why can I find postings on google groups that I never saw on this list

2005-12-06 Thread Martin J. Evans
David Nicol wrote: On 12/6/05, Martin J. Evans [EMAIL PROTECTED] wrote: On 06-Dec-2005 Andy Hassall wrote: If this is the case, then it seems that Google Groups should either make their version of the group read-only (this would seem to be the most sensible option since it's really a mailing

FYI ping no longer works via DBI:ODBC:mysql

2005-12-13 Thread Martin J. Evans
will not fail and will NOT see the table does exist. A SQLPrepare/SQLExecute does however return the connection to mysql server has been lost. I don't like cross posting so I'll be mentioning this separately on the myodbc list. Martin -- Martin J. Evans Easysoft Ltd, UK Development

Minor bug in DBD::ODBC 02simple test

2005-12-15 Thread Martin J. Evans
); It also fails if you only have 1 data source but that can be fixed by changing the comparison: cmp_ok($#data_sources, '=', 0, data sources test); Martin -- Martin J. Evans Easysoft Ltd, UK Development

RE: [dbi] Message from Maintainer to DBD::mysql users, developers

2006-01-31 Thread Martin J. Evans
with modules that provided backwards compatibility with the old perl4 APIs (ie Oraperl). Setting $sth-{Compat} = 1 will make DBIc_COMPAT(imp_sth) true. So that gives you a pure-perl workaround. Tim. p.s. I've no idea why it's used in DBD::mysql in this way. == Martin -- Martin J. Evans

Re: Some progress on Strange selectall_hashref/fetchall_hashref problem with DBD::mysql

2006-02-16 Thread Martin J. Evans
can explain what my_get_fbav and my_setup_fbav were written to acheive. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 15-Feb-2006 Tim Bunce wrote: On Tue, Feb 14, 2006 at 06:16:30PM -, Martin J. Evans wrote: Regarding my posting with a problem using DBI 1.50

RE: [dbi] DBD::ODBC with Perl 5.8.8

2006-03-03 Thread Martin J. Evans
into dbdimp.c got changed to 51. A trace of the 20SqlServer test might help. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 02-Mar-2006 Jonathan Gillespie wrote: Hello, I'm having problems getting DBD::ODBC 1.13 to work with perl 5.8.8 I'm running CentOS 4.2 with the latest

RE: Q: WinXP, MySQL V 5.0.15, DBI V 1.49, DBD::mysql V 3.002, and primary_key_info

2006-03-03 Thread Martin J. Evans
-- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 03-Mar-2006 Ron Savage wrote: Hi Folks When I call primary_key_info(undef, undef, 'table name in lower case') I get back an undefined sth and hence can't get primary key info. Should I expect this to work? I can't see anything

Re: DBI support transactions on MySQL 5.0?

2006-03-03 Thread Martin J. Evans
As Will writes, I use transactions within DBD::mysql with MySQL 5 but ONLY if using innodb tables. i.e. you need to add the innodb to the create table defn. Typically, I ignore Autocommit and do a $dbh-begin_work then a $dbh-commit - works fine so long as you remember transaction timeout which

Re: [dbi] DBD::ODBC with Perl 5.8.8

2006-03-06 Thread Martin J. Evans
for DBD::ODBC::st (DBI::st=HASH(0x8ac55d8)~0x8ac5638 1 SCALAR(0x89a2d64) 50 4) -Original Message- From: Martin J. Evans [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 10:03 AM To: dbi-users@perl.org Subject: RE: [dbi] DBD::ODBC with Perl 5.8.8 Jonathan, The test that fails works

Re: [dbi] DBD::ODBC with Perl 5.8.8

2006-03-07 Thread Martin J. Evans
(phs-sv, 50) but SvLEN(phs-sv) returns 52! and DBD::ODBC does not expect this. Certainly does not happen in 5.8.7. I'm out of my depth for the moment on this now. If any one has any ideas on this I'd appreciate them. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 06-Mar

Re: [dbi] DBD::ODBC with Perl 5.8.8

2006-03-07 Thread Martin J. Evans
Sorry, I meant: svGrow(phs-sv, 50 + 1) SvLEN(phs-sv) returns 52! Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 07-Mar-2006 Martin J. Evans wrote: Hi again. I've now had a chance to take a quick look at this. I can reproduce with DBI 1.50 and DBD::ODBC 1.13

RE: [dbi] Unicode-Patch for DBD::ODBC

2006-03-15 Thread Martin J. Evans
it stood out - should that be *sizeof(WCHAR). Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 15-Mar-2006 Alexander Foken wrote: Hello DBI-users, I've written a first patch for DBD::ODBC to support Unicode. The patch was developed to make a custom project management

Re: Transactions: DBI vs. SQL

2006-03-26 Thread Martin J. Evans
Tom Mornini wrote: You need to turn AutoCommit off with: my $dbh = DBI-connect('dbi:Pg:dbname=test', 'postgres', '...', { PrintError = 1, RaiseError = 0, AutoCommit = 0 }); You should not have to turn autocommit off with begin_work: From the docs: Enable

Re: Transactions: DBI vs. SQL

2006-03-27 Thread Martin J. Evans
be Postgres library version related. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 26-Mar-2006 John Siracusa wrote: On 3/26/06 4:00 AM, Martin J. Evans wrote: Tom Mornini wrote: You need to turn AutoCommit off with: my $dbh = DBI-connect('dbi:Pg:dbname=test', 'postgres

Problems with database handle attributes in error handle

2006-03-27 Thread Martin J. Evans
get dbh-{Statement}: unrecognised attribute error in test caused by change to perl internals in 5.8.0 and a diff of 1.36/1.37 seems to have added the strEQ test for Statement (above). Is this a similar case perhaps? Thanks. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

Re: Problems with database handle attributes in error handle

2006-03-27 Thread Martin J. Evans
Tim, Thanks for the confirmation. I added: || (*key=='U' strEQ(key, Username)) and my problem has gone away. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 27-Mar-2006 Tim Bunce wrote: On Mon, Mar 27, 2006 at 02:04:30PM +0100, Martin J. Evans wrote: Hi, I

Easily produced: DBD::mysql outputs to stderr and no DBI-errstr

2006-03-27 Thread Martin J. Evans
; mysql_stmt_close(stmt); Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

FWD: Re: Easily produced: DBD::mysql outputs to stderr and no DBI-errstr

2006-03-27 Thread Martin J. Evans
Could the list maintainer please remove this person - every time I post I get one of these: Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com -FW: [EMAIL PROTECTED]- Date: 27 Mar 2006 19:39:39 +0300 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Easily

execute not seen on selectrow_* for suclassed DBI

2006-03-29 Thread Martin J. Evans
]; prepare: select b from mytest where a = ? !!! no execute here Or, perhaps I'm doing something wrong. Can anyone tell me if I should be seeing the execute when $dbh-select*** is called? I think I should. Thanks Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

RE: execute not seen on selectrow_* for suclassed DBI

2006-03-29 Thread Martin J. Evans
The issue I am seeing is not quite as general as I made it sound. For selectrow_hashref I see prepare/execute/fetch/fetchrow_hashref (as I expect) but for selectrow_arrayref and selectrow_array I only see prepare. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 29-Mar-2006

Is ArrayTupleStatus in execute_array mandatory?

2006-03-29 Thread Martin J. Evans
are correct or is it that DBI does not check for its existence? Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

RE: [dbi] Re: execute not seen on selectrow_* for suclassed DBI

2006-03-29 Thread Martin J. Evans
subclassed DBI to know this? b) is there an easy way to identify which other methods this could apply to Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 29-Mar-2006 Tim Bunce wrote: On Wed, Mar 29, 2006 at 11:54:32AM +0100, Martin J. Evans wrote: The issue I am seeing is not quite

Possible bug in execute_array with dbd::mysql

2006-03-29 Thread Martin J. Evans
-- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

Re: [dbi] Re: execute not seen on selectrow_* for suclassed DBI

2006-03-29 Thread Martin J. Evans
need as much info as possible at the time of the problem and I need it as light weight as I can make it because slowing it down sometimes hides the problem. Martin Tim Bunce wrote: On Wed, Mar 29, 2006 at 04:49:32PM +0100, Martin J. Evans wrote: Tim, Thanks, I do keep forgetting about Driver.xst

Re: Message from Maintainer to DBD::mysql users, developers

2006-03-29 Thread Martin J. Evans
Tim Bunce wrote: On Wed, Mar 29, 2006 at 09:58:16AM -0800, Mark Hedges wrote: On Wed, 29 Mar 2006, Tim Bunce wrote: On Wed, Mar 29, 2006 at 10:53:56AM +0200, Peter J. Holzer wrote: On 2006-01-31 01:24:18 +0100, Patrick Galbraith wrote: I apologise for what might seem somewhat of a bit of

Re: [dbi] Re: execute not seen on selectrow_* for suclassed DBI

2006-03-29 Thread Martin J. Evans
Tim Bunce wrote: On Wed, Mar 29, 2006 at 09:02:43PM +0100, Martin J. Evans wrote: Thanks Tim. I'm now hopefully looking in the right places. Not seeing execute on a selectrow_array threw me initially but it is an example of the problems I'm seeing. I'm having a few problems accessing things

New test for dbd::mysql demonstrating that once an execute fails all other executes on same statement fail

2006-03-29 Thread Martin J. Evans
Patch against dbd::mysql 3.0002_4 which demonstrates that if you prepare a statement and execute multiple times then as soon as one execute fails all subsequent executes fail. This obviously effects execute_array in particular as all the tuple_status values from the failed execute onwards show an

pod patch for ParamArrays and now optional ArrayTupleStatus

2006-03-30 Thread Martin J. Evans
the ArrayTupleStatus which is optional since 1.38. Thanks again for pointing out ParamArrays. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com ParamArrays.patch Description: ParamArrays.patch

RE: DBI blues

2006-03-30 Thread Martin J. Evans
to install something else in Perl or make other changes. You need Test::More - http://search.cpan.org/~mschwern/Test-Simple-0.62/lib/Test/More.pm and by the looks of the script, you will later need the oracle and mysql dbds which you'll also find on cpan. Martin -- Martin J. Evans Easysoft Ltd

Support for ParamValues in dbd::mysql and a note on DBD::ODBC

2006-03-31 Thread Martin J. Evans
Jeff to comment. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

Re: $sth-execute(@$bindVars) is outputting an error

2006-04-01 Thread Martin J. Evans
Peter Loo wrote: Hi, I am trying to pass an array reference to $sth-execute and I am getting the following error: DBD::ODBC::st execute failed: called with 38 bind variables when 0 are needed at /usr/local/apps/common/devl/bin/GlobalRoutines.pm line 42. The code I am using is as follows:

Help required from dbd::mysql maintainers/authors re MYSQL_VERSION_ID and SERVER_PREPARE_VERSION

2006-04-02 Thread Martin J. Evans
Hi, I could really do with a little assistance form the dbd::mysql maintainers or authors please. I am investigating the issue I reported here with execute_array or all executes failing after one execute fails. i.e. create table test (a int primary key) prepare(insert into test values(?)

Re: MSAccess from SQL

2006-04-05 Thread Martin J. Evans
Siegfried Heintze wrote: Is there an example somewhere of accessing an MSAccess database from a SuSE or RedHat machine via perl DBI? Here is what I am presently using with ActiveState Perl to access the MSAccess database on windows: my $dbh = DBI-connect(dbi:ODBC:driver={Microsoft Access

RE: selectall_arrayref/hashref error again

2006-04-06 Thread Martin J. Evans
::ODBC and DBD::mysql - both were OK (but my DBD::mysql is massively patched). Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 06-Apr-2006 Karl Berry wrote: Greetings, I'm wondering about how to retrieve the error from bad sql passed to selectall_arrayref

RE: does disconnect() actually commits transaction even if the connect is made using autocommit=0

2006-04-07 Thread Martin J. Evans
not using AutoCommit should explicitly call commit or rollback before calling disconnect. I was a bit surprised to see the comment on Oracle automatically committing. I believe there is a way to stop this happening at the oci level. Martin -- Martin J. Evans Easysoft Ltd, UK http

Re: does disconnect() actually commits transaction even if the connect is made using autocommit=0

2006-04-07 Thread Martin J. Evans
Martin J. Evans wrote: On 07-Apr-2006 Jie Zhang wrote: Hi, If I initiate a connection using autocommit=0 in DBI and I don't do a explicit connection-commit(), should transactions automatically commit after I do an explicit connection-disconnect()? I was expecting an automatica rollback

Re: does disconnect() actually commits transaction even if the connect is made using autocommit=0

2006-04-07 Thread Martin J. Evans
changed how we used OCI. I'll have to look this up after the weekend. This would suggest it is how DBD:oracle uses OCI. If you don't hear anything early next week mail me personally to remind me to look it up. Martin thanks, Jie Martin J. Evans wrote: Jie Zhang wrote: Tom and Martin

Re: Help required from dbd::mysql maintainers/authors re MYSQL_VERSION_ID and SERVER_PREPARE_VERSION

2006-04-08 Thread Martin J. Evans
the following patch for a test case to dbi-users list: http://www.nntp.perl.org/group/perl.dbi.users/28909 Original posting and followups: http://www.nntp.perl.org/group/perl.dbi.users/28896 http://www.nntp.perl.org/group/perl.dbi.users/28908 Martin Martin J. Evans wrote: Hi, I could really do

RE: (Fwd) suggestion for DBI

2006-04-13 Thread Martin J. Evans
of the logging does not come out. You may also want to look a the notes in the pod as you will need to make a small fix to DBI to get Username and ParamArrays out. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 12-Apr-2006 Tim Bunce wrote: - Forwarded message from Tomas Karlsson

RE: (Fwd) suggestion for DBI

2006-04-13 Thread Martin J. Evans
application is running all the time and when it goes wrong I need as much info as possible (especially whilst we are developing it). It is not practical to use DBI's trace - it is too slow, uses too much disk space and is too difficult to find what I need. Martin -- Martin J. Evans Easysoft Ltd, UK http

RE: [dbi] DBD::Solid or DBD::ODBC with Solid

2006-04-20 Thread Martin J. Evans
? Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

RE: DBD::Solid or DBD::ODBC with Solid

2006-04-21 Thread Martin J. Evans
or ODBCINSTINI environment variables have you? If not then the only thing I can suggest is you send an strace (Linux) or truss (Solaris) of the isql run - don't bother mailing it to the list - it will be too big. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com On 20-Apr-2006 Simon

Re: DBD::ODBC installation problem with Easysoft ODBC-Sybase driver

2006-04-28 Thread Martin J. Evans
Ben, Two testa failed because Sybase does not support data type -3 - that is not a problem. One test failed because you have not yet defined any data sources in the odbc.ini file - not a problem. You can ignore these. Martin Ben Ostrowsky wrote: Hi folks -- I've got Easysoft's latest

RE: [dbi] Prepared statement not a cursor specification

2006-04-30 Thread Martin J. Evans
. However, 07005 says: The statement associated with the StatementHandle did not return a result set. There were no columns to describe. so that would suggest you SQL is no a result-set generating statement i.e. not a select statement. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

Re: Adding utf8 support to DBD::mysql

2006-04-30 Thread Martin J. Evans
Patrick Galbraith wrote: Martin J. Evans wrote: Martin, Thanks much! This is dbdimp.c, right? Yes I will add this tomorrow (not working today), and I'm stricly not working tomorrow - bank holiday - but it is likely I'll find time to do something. and test it out. If everything is a go

Re: Adding utf8 support to DBD::mysql

2006-04-30 Thread Martin J. Evans
Patrick Galbraith wrote: Martin J. Evans wrote: Martin, Sure, I'll be glad to put in the code. If you can come up with tests, that's one thing we need. Whatever you like, and whatever works for you. I'll always give you due credit. Slightly confused as I think I provided tests

RE: [dbi] Re: Adding utf8 support to DBD::mysql

2006-05-01 Thread Martin J. Evans
On 30-Apr-2006 Patrick Galbraith wrote: Martin J. Evans wrote: Martin, Sure, I'll be glad to put in the code. If you can come up with tests, that's one thing we need. Whatever you like, and whatever works for you. I'll always give you due credit. I also would like to know how

Re: DBD::mysql 3.0003 and 3.0003_1 released

2006-05-07 Thread Martin J. Evans
Paul DuBois wrote: On 5/6/06 11:54, Patrick Galbraith [EMAIL PROTECTED] wrote: Dear DBD::mysql users, DBD::mysql version 3.0003 (stable, production) and 3.0003_1 (dev) have been released! Version 3.0003 is the production version with server-side prepare statements turned off by default, and

RE: Strange DBI/DBD problems

2006-05-08 Thread Martin J. Evans
will result in NULL (or whatever the default is), but shouldn't it return a string 'NULL'? No - it returns undef. Any help will be appreciated. Thanks Mike Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com

write to freed buffer in dbd::mysql 3.0003_1

2006-05-09 Thread Martin J. Evans
==by 0x80613AD: perl_run (in /usr/bin/perl) ==5361==by 0x805E866: main (in /usr/bin/perl) ==5361== finish is throwing stuff away that the mysql client still has the address of. I think the problem would be worse if the example was using bound columns. Martin -- Martin J. Evans Easysoft Ltd, UK

  1   2   3   4   5   6   >