Re: DBD error

2020-07-20 Thread Martin J. Evans
he same C compiler to build DBD::Oracle that was used to build Perl. Did you build Perl or did you get it pre-built from a repository for AIX? If the latter then you need to use the same compiler as was used to build Perl. You are mixing 32 bit compiled code with 64 bit compiled code as it stands. Martin -- Martin J. Evans Wetherby, UK

Re: Perl script excessively executing statement

2020-02-18 Thread Martin J. Evans
Not unless you are using execute_array. The code you posted didn't look like it was. Martin -- Martin J. Evans Wetherby, UK

New release of DBD::ODBC 1.61

2020-01-31 Thread Martin J. Evans
contributed. Martin -- Martin J. Evans Wetherby, UK

DBD-Oracle 1.79 released to the CPAN

2019-07-20 Thread Martin J. Evans
I have just uploaded DBD::Oracle 1.79 to the CPAN.   [BUG FIXES]   Fix Avoid GCC-ism so that HP-UX can compile (GH#92, Dean Hamstead)   Destroy envhp with last dbh (GH#93, GH#89, Dean Hamstead, CarstenGrohmann) Thanks to everyone who contributed. Martin -- Martin J. Evans Wetherby, UK

Translate between DBI and SQL

2019-02-08 Thread Mike Martin
Has anyone done any work on converting SQL queries between RDBMS and perl? My particular interest is DBD::Pg but anything would be of use It would be very useful when I am testing complex SQL, it's very easy to miss a \ or quote between the two Thanks Mike

Re: DBD::ODBC and issues getting LongTruncOk / LongReadLen to take effect

2018-11-17 Thread Martin J. Evans
On 15/11/2018 23:54, Daniel Kasak wrote: Hi Martin. Sorry for the very long delay. We had abandoned the ODBC driver in favour of the native DBD::DB2, and I've been working on this project outside my normal work hours anyway, so got bogged down in other issues ... I've uploaded th

Wierd issue with printf and DBD::Pg

2018-10-01 Thread Mike Martin
HI If I use printf to round a numeric value before inserting into postgres table it is altered to 1 rather than the value when it is put into a table example CREATE TABLE public.chksize ( size numeric(10,2), #does not matter what field type path1 character varying COLLATE pg_catalog."defau

Re: debugging and stepping into ->do

2018-04-25 Thread Martin J. Evans
? -- Jeff Macdonald Ayer, MA do may be implemented by the driver in XS (c code) in which case you would not be able to step into it. Drivers can override the DBI methods. Martin

Re: DBD::ODBC and issues getting LongTruncOk / LongReadLen to take effect

2018-04-05 Thread Martin J. Evans
the simplest test you can and rerun with DBI_TRACE=15=trace.log perl mycode.pl and show me the trace.log file. Martin

Re: MySQL IV vs PV

2017-11-14 Thread Martin J. Evans
JSON. JSON treats numbers and string differently and I required numbers to be numbers and not strings. There is of course, the type argument to bind_param as well. Best of luck. Martin

minor changes in a parser

2017-11-10 Thread Martin Kaspar
://www.foo.com - is this doable? love to hear from you Martin #!C:\Perl\bin\perl use strict; # You always want to include both strict and warnings use warnings; use LWP::Simple; use LWP::UserAgent; use HTTP::Request; use HTTP::Response; use HTML::LinkExtor; # There was no reason for this t

Re: Perl DBI libraries for connecting 12c

2017-10-10 Thread Martin J. Evans
s the developer header files and libs that DBD::Oracle uses to compile the c code. You should probably get the sqlplus package as well as it is used if found, to determine the version of Oracle client you are using. Without it, the Makefile might assume you are oracle 8. Martin

Re: DBD::SQLAnywhere SEGV when Oracle handle exists

2017-03-07 Thread Martin J. Evans
, 2017 5:17 AM, "Martin J. Evans" mailto:boh...@ntlworld.com>> wrote: On 02-Mar-17 10:54 PM, Douglas Wilson wrote: DBD::SQLAnywhere seems to work ok for Sybase IQ, but if I first create a DBD:Oracle handle, the SQLAnywhere connect hangs for a while, and

Re: DBD::SQLAnywhere SEGV when Oracle handle exists

2017-03-04 Thread Martin J. Evans
rd similar reports before. I think it had something to do with the method used to connect to Oracle and if that method is chosen it captures SIGCHLD and maybe another signal as well. Martin -- Martin J. Evans Wetherby, UK

new DBD::ODBC released

2016-10-13 Thread Martin J. Evans
mic_config from META.yml. Martin

Re: DBD for SQL Server

2016-09-07 Thread Martin J. Evans
f) but if someone was brave enough to try then all the best to them. Martin

Re: how to repersent N:M in DBIx?

2016-09-01 Thread Martin Hall
n time - only those products which have 'ALL' of multiple given tags. the SQL suggested on the page is: |SELECTa.*FROMproducts a INNERJOINproduct_tags b ONa.product_id =b.product_id WHEREb.tag_id IN(1,23,54)GROUPBYa.product_id HAVINGCOUNT(1)=3| thank you. Rajeev -- cheers Martin

Re: Help with DBD::Oracle install

2016-02-07 Thread Martin J. Evans
PPORT -DORA_OCI_VERSION=\"10.2.0.5\" -DORA_OCI_102 Oracle.c /usr/ucb/cc: language optional software package not installed *** Error code 1 make: Fatal error: Command failed for target `Oracle.o' You need to install a C compiler - the one your Perl was built with is most likely to work. Martin -- Martin J. Evans Wetherby, UK

Fwd: Re: Extra nulls inserted with binary data (DBD::ODBC on Win7)

2016-01-28 Thread Martin J. Evans
--- Begin Message --- On 28/01/16 15:08, Jerrad Pierce wrote: Hello Martin, $DBI::VERSION = 1.634 $DBD::ODBC::VERSION = 1.52 It would also be useful to know the column type in your access DB. I'm updating a LONGBINARY column in a Jet 4 (MDB) database. Thanks Thank you I forgo

Re: Extra nulls inserted with binary data (DBD::ODBC on Win7)

2016-01-28 Thread Martin J. Evans
. If this produces nothing in x.log you've probably got an older DBI in which case use: set DBI_TRACE=15=x.log perl mycode.pl It would also be useful to know the column type in your access DB. Thanks Martin

Re: Data sources

2015-11-02 Thread Martin J. Evans
re you get the MS Access driver from. Be careful, as there are 2 ODBC driver managers, one for 32 bit apps and one for 64 bit apps. You need to use the one that is the same as your Perl. Martin

Re: error message

2015-11-02 Thread Martin J. Evans
your ODBC driver manager? Are you using a 64 bit perl and don't have a 64 bit Access driver for instance? Martin

Re: MS access

2015-11-02 Thread Martin J. Evans
On 02/11/15 07:51, Ismail Chamseddine wrote: I am using Active Perl 5.18.4 64 bit on Windows 7 64 bit The connect string code my $dbh = DBI->connect('dbi:ODBC:driver=microsoft access driver (*.mdb); database= C:\Users\User\Documents\Mydb.accdb'); On Fri, Oct 30, 2015 at 4:07

Re: MS access

2015-10-30 Thread Martin J. Evans
ODBC administrators. What versions of DBI and presumably DBD::ODBC are you using? Martin

Re: DBD::Oracle and RHEL Instant Client rpms

2015-10-20 Thread Martin J. Evans
and sqlplus zips and unzip them then point DBD::Oracle at them by setting LD_LIBRARY_PATH. Did you download the sqlplus RPM (assuming there is one) as DBD::Oracle uses sqlplus during the install to work out what version of the Oracle client you have? Martin -- Martin J. Evans Wetherby, UK

new development release 1.53_1 of DBD::ODBC

2015-10-16 Thread Martin J. Evans
_ROW_COUNT. [DOCUMENTATION] Add tables and table_info section to deviations from the DBI spec. [MISCELLANEOUS] Change column name in t/rt_101579.t as "method" is a reserved word in. Teradata Thanks to Zhenyi Zhou. Remove duplicate dynamic_config from META.yml. Martin

Re: help with odd DBI perpare/execute errors

2015-06-03 Thread Martin J. Evans
or been fixed in all that time. I've recommended William tries a newer version as I suspect the preparse code it failing since those ? should not get to Oracle. Martin

Re: help with odd DBI perpare/execute errors

2015-06-03 Thread Martin J. Evans
, I expect, as you do, that one of the chrs in the SQL is not what it seems. Sorry, as log file was sent to me I answered it and did not cc the list. Martin

Re: help with odd DBI perpare/execute errors

2015-06-03 Thread Martin J. Evans
On 03/06/15 14:38, William Bulley wrote: According to "Martin J. Evans" on Wed, 06/03/15 at 09:15: So, when this fails, what is the value of $value. I just ran it again. The value is 547. Sounds ok but the error is "invalid string" ORA-0911 You tried to execute

Re: help with odd DBI perpare/execute errors

2015-06-03 Thread Martin J. Evans
hat to look for. Regards, web... Tell us the column type of 'column' and the value of $value when the original code fails. If this does not enlighten you, reduce this to a small reproducible script and re-run with ora_verbose set to 7. Paste the output somewhere we can view it. Martin

Re: Issue with DBD::ODBC (SQLServer) and bcp

2015-05-18 Thread Martin J. Evans
On 18/05/2015 16:03, Mike Martin wrote: Hi Is it a known issue with running bcp while an active db connection I have a script that basically opens a db connection selects some data parses/transforms the data writes to a text file -- runs bcp to import the data into same

Issue with DBD::ODBC (SQLServer) and bcp

2015-05-18 Thread Mike Martin
Hi Is it a known issue with running bcp while an active db connection I have a script that basically opens a db connection selects some data parses/transforms the data writes to a text file -- runs bcp to import the data into same database -- does some upd

Re: dbi selectall_hashref drops results

2015-05-15 Thread Martin J. Evans
that field is not a unique key you will lose rows. Martin

Re: Memory not being freed with DBD::ODBC

2015-04-21 Thread Martin J. Evans
On 20/04/15 17:54, Mike Martin wrote: I have the following script (extremley simplified) foreach my $key (sort {$a<=>$b} keys %run){ my $inp; $inp=$dbh->selectall_arrayref("select id, [description] from Kaonix_import_base where idint between ? and ? ",undef,$run{$key}-&g

Memory not being freed with DBD::ODBC

2015-04-20 Thread Mike Martin
I have the following script (extremley simplified) foreach my $key (sort {$a<=>$b} keys %run){ my $inp; $inp=$dbh->selectall_arrayref("select id, [description] from Kaonix_import_base where idint between ? and ? ",undef,$run{$key}->[0], $run{$key}->[1]) ; addrec($inp); -- sub to run very heavy r

New DBD::ODBC 1.52 release

2015-04-15 Thread Martin J. Evans
_1 2014-11-14 [BUG FIXES] RT100186 - handle VARBINARY(MAX) parameters with SQL Server native client. Identify "libmsodbcsql*" as the MS ODBC Driver for Linux as there are some specific workarounds for MS Native Client ODBC driver. Martin

Re: DBD::ODBC Destroy bug?

2015-04-01 Thread Martin J. Evans
On 01/04/15 05:36, Joel Plotkin wrote: Hi Martin, I've attached a odbc device driver log (sql.log) and the dbi trace log at level 15 (x.log). Hope this helps, Joel Joel, Thanks for the logs but I'm not sure you are going to be too pleased with my analysis. There are a few poin

Re: DBD::ODBC Destroy bug?

2015-03-31 Thread Martin J. Evans
the ODBC level as then we can try and find out why SQLFreeHandle is failing. You can do this by going to the ODBC administrator (make sure you pick the right one 32 bit or 64 bit depending on what your perl is) and selecting the tracing tab, enter a file and click on start then run your script. Martin

Re: DBD::ODBC Destroy bug?

2015-03-25 Thread Martin J. Evans
oel Ps- we too used PerlBrew to install Perl 5.20 - specifically: perl 5.20.2 DBI 1.633 DBD::ODBC = 1.50 Martin

Re: DBD::ODBC Destroy bug?

2015-03-25 Thread Martin J. Evans
see if they can find 1.53_3 for me. sorry, typo from me - that is the version I am using. 3) *** I'm using perl 5.10.1 ... maybe this is the issue. I'll upgrade to perl 5.19.10 and see if the issue goes away. I'll keep you posted, Joel I've since tried on a load of per

Re: DBD::ODBC Destroy bug?

2015-03-24 Thread Martin J. Evans
is a good place to send your issue. When I run your script as it stands (with edits below) I get: opening new db connection at mje/joel.pl line 23. This is a test 3 at mje/joel.pl line 45. This is a test 4 at mje/joel.pl line 47. Can't return outside a subroutine at mje/joel.pl line 56. perl 5.19.10 DBI 1.631 DBD::ODBC 1.53_3 (which is latest git) I'm going to SQL Server enterprise edition via the Easysoft SQL Server driver. Obviously I changed the logon details and the SQL. BTW, I don't think you need those calls to finish (see finish in DBI docs). Martin

Re: Help with using Triggers MySql/Innodb

2015-02-26 Thread Martin J. Evans
ith the rows with that house id. In other words, I think this is generally bad design. Martin

Re: Statement Handle Attribute Precision

2015-01-23 Thread Martin J. Evans
his error. Can't get DBI::st=HASH(0x7fcee73ce078)->{COLUMN_SIZE}: unrecognised attribute name at ./ut_testdictsync line 19. because of the bit you quoted "but we stick with PRECISION for backwards compatibility" Martin On 01/22/15 08:26, Michael Gerdau wrote: In in "standa

Re: Escaping placeholders

2014-12-23 Thread Martin J. Evans
t forward, but it would make application and interface layers so much easier if they could just say 'does this DBD do X' and maybe 'how do I make it do X'. Martin -- Martin J. Evans Wetherby, UK On 2014-12-21 7:17 AM, Greg Sabino Mullane (the tenth man) wrote: Tim Bu

Re: foreign_key_info() nits

2014-11-17 Thread Martin J. Evans
BD::ODBC maintainer I would prefer not to have to map ODBC 2 names to 3 - it would set a precedent that would lead to many other changes. Thanks, Kurt Starsinic Martin

New 1.50 release of DBD::ODBC

2014-07-25 Thread Martin J. Evans
mber of allowed parameters. Martin

Re: DBD::Informix

2014-07-09 Thread Martin J. Evans
formix but all those missing symbols are in dl.so. Try to find a way to get the Makefile.PL to add -ldl to the link line. Maybe just setting LDFLAGS=-ldl and exporting it before running Makefile.PL will do it. Martin

Re: (Fwd) Issue :DBD::Oracle installation

2014-06-06 Thread Martin J. Evans
On 06/06/14 12:17, Ranjitha wrote: Hi Martin Screen shot from yast : showing sqlplus is installed. I have sqlplus installed in my server, then why the error? Same way I have installed sqlplus in other servers also, no issue there. Thanks and regards, You've misunderstood me. I w

Re: (Fwd) Issue :DBD::Oracle installation

2014-06-06 Thread Martin J. Evans
sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory This is your problem. You need to get sqlplus working in your environment before attempting to build DBD::Oracle. Martin

Re: Probably simple, stupid question about Oracle TAF and DBI

2014-06-02 Thread Martin J. Evans
ies and all DBD::Oracle does is make the appropriate calls to set it up and call the callback. As such Oracle docs will be your friend. Try it and see and report back. Up to this point I only know of myself as having used TAF with DBD::Oracle. There may be an article on the Easysoft web site. Martin -- Martin J. Evans Wetherby, UK

New development release of DBD::ODBC 1.49_3

2014-05-01 Thread Martin J. Evans
um number of allowed parameters. Martin

Re: make test failed for perl module DBD-Oracle-1.70

2014-03-19 Thread Martin J. Evans
ck but it should get you further. If you are struggling with this mail the Makefile to me (only) and I'll take a look. make: The error code from the last command is 255. Stop. [root@ews-pgh1-esmd2] /home/rj46/DBD-Oracle-1.70 q32 option is mandatory? no idea what your question is there. Can you please guide how to proceed on this? Thanks & Regards, Martin -- Martin J. Evans Wetherby, UK

New DBD::ODBC 1.47 release

2014-02-19 Thread Martin J. Evans
. I'm now going to sit back and wait for the usual rush of reports from everyone who didn't test it. See below for changes since last full release. Martin 1.47 2014-02-19 Full release of the 1.46 development releases. [MISCELLANEOUS] Just some tidying up of dbdimp.c - should

Re: I have a weird issue with a script running under cron

2014-02-18 Thread Martin J. Evans
instant client path. I wondered how it had managed to do that then realised my PATH still pointed to the old instant client and it had managed to run sqlplus from there and chosen the old path. It was easily solved by setting my PATH to the new instant client too. Martin

Re: Surprising DBD::Oracle error raised

2014-02-05 Thread Martin J. Evans
On 05/02/14 14:08, David Nicol wrote: On Wed, Feb 5, 2014 at 7:25 AM, Martin J. Evans wrote: That is indeed interesting. When I run the following with DBD::ODBC to MS SQL Server: use strict; use warnings; use DBI; my $h = DBI->connect(); eval { $h->do(q/drop table mje/); }; $h

Re: Surprising DBD::Oracle error raised

2014-02-05 Thread Martin J. Evans
ee I did the same. vs if ($price_sth->fetch) There is the odd chance that he is doing the SQL against a 'view', 'cursor' or alike but I doupt that is it. Perhaps David can tell us more. Martin > Date: Wed, 5 Feb 2014 13:25:03 + > From: martin.ev...@ea

Re: Surprising DBD::Oracle error raised

2014-02-05 Thread Martin J. Evans
y ($row) = $s->fetchrow_array; print "$row\n"; $row = $s->fetch; print "$row\n"; I get: 1 Use of uninitialized value $row in concatenation (.) or string at mje/fetch_off_end.pl line 20. However, I get the same with DBD::Oracle so how is you code different from the above. Martin

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-31 Thread Martin J. Evans
ay I don't understand why. I think there is more to this than it so far looks but without a way of reproducing it myself I won't be spending any more time on it. If it is reproducible in a standalone script I will happily look again. Martin

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-28 Thread Martin J. Evans
On 28/01/2014 10:56, hhferreira wrote: Hi John & Martin, Our application is single threaded and does not uses connection pool neither statement caching. Below I'm sending the code where new connections are created. Hi Hélder, I'm answering now as I don't want yo

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-24 Thread Martin J. Evans
"-1", -1, errmsg, Nullch, Nullch); return 0; } and I don't particularly like that casting but I don't think it explains the problem. Martin We will proceed with the test environment setup using the latest perl and module versions, Martin mentioned this could be done wit

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-24 Thread Martin J. Evans
/blib/arch -Idir2/blib/lib -Idir2/blib/arch myapp.pl M

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-24 Thread Martin J. Evans
On 24/01/14 12:26, hhferreira wrote: Hi, We have already tried using ora_maxarray_numentries and other similar attributes unsuccessfully. Martin found that immediately before the error the following message is written: {{ execute callback CODE(0xb832be8) being invoked However we have done

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-24 Thread Martin J. Evans
e, as this would definitely be the best way to go. It would be worth putting a bit more effort into this. Any help would be highly appreciated! Thanks in advance. Best Regards, Hélder Hugo Ferreira Martin

Re: Issues with DBI Oracle Input Array Binds (ORA_VARCHAR2_TABLE)

2014-01-24 Thread Martin J. Evans
Just so everyone knows, I pointed hhferreira here in the following thread on perl monks: https://perlmonks.org/?node_id=1071794 Martin On 24/01/14 10:29, hhferreira wrote: Hi Guys, Hope you can provide us some enlightenment! We have the following code which basically calls an oracle

Re: Table-Valued Parameters to MS SQL Server stored procedure

2013-12-30 Thread Martin J. Evans
BC (if you know different and can point me at it I'll take a look). The traditional way around this is to use temporary tables. Martin -- Martin J. Evans Wetherby, UK

Re: DBI: selectrow_array() return first column when called in list context

2013-12-21 Thread Martin J. Evans
_arrayref, DBI returned:@retarr contains: markb ro Installed versions ==== perl -MDBD::mysql -le 'print $DBD::mysql::VERSION;' 4.013 perl -MDBI -le 'print $DBI::VERSION;' 1.609 Martin -- Martin J. Evans Wetherby, UK

DBD::ODBC 1.46_2 released - your really need to test this

2013-12-17 Thread Martin J. Evans
MS Access (which does not support schemas - even for a simply ping (which uses SQLTables)). Now we call SQLCATALOG_NAME and SQLSCHEMA_USAGE on connect to ascertain support which modifies SQLTables call. [MISCELLANEOUS] Added test 45_unicode_varchar.t for MS SQL Server only so far.

Re: DBD::ODBC and Unicode

2013-11-20 Thread Martin J. Evans
On 20/11/13 09:39, Michiel Beijen wrote: Hi, I ran into this issue with DBD::ODBC; I read Martin asked about feedback on the 1.46_1 devel release. I tested my code against both versions 1.43 and 1.46_1 an the results are the same. Thanks for this. It has raised questions that needed

Re: :ODBC 1.46_1 released - You REALLY need to test this release

2013-11-17 Thread Martin J. Evans
On 17/11/2013 08:32, Meir Guttman wrote: Dear Martin -Original Message- From: Martin J. Evans [mailto:boh...@ntlworld.com] Sent: שבת 16 נובמבר 2013 12:34 To: dbi-users@perl.org; DBI Developers Mailing List; dbi-annou...@perl.org Subject: DBD::ODBC 1.46_1 released - You REALLY need to

DBD::ODBC 1.46_1 released - You REALLY need to test this release

2013-11-16 Thread Martin J. Evans
ot support schemas - even for a simply ping (which uses SQLTables)). Now we call SQLCATALOG_NAME and SQLSCHEMA_USAGE on connect to ascertain support which modifies SQLTables call. [MISCELLANEOUS] Added test 45_unicode_varchar.t for MS SQL Server only so far. Martin -- Martin J. Evans Wetherby, UK

Re: DBD::ODBC fails after "Execute immediate success with info"

2013-11-06 Thread Martin J. Evans
On 06/11/13 14:36, Jan Holčapek wrote: Hi Martin, On Wed, Nov 6, 2013 at 3:05 PM, Martin J. Evans wrote: I believe this is a bug in your ODBC driver. I kind of expected that. I'll file a bugreport to Vertica Support. good, that was part of what I was hoping to achieve when I did

Re: DBD::ODBC fails after "Execute immediate success with info"

2013-11-06 Thread Martin J. Evans
On 06/11/13 12:36, Jan Holčapek wrote: Hi Martin, 3. now run your basic script and send me /tmp/unixodbc.log attached is the log file you've requested. Please let me know your findings, thanks! --Jan Hi Jan, Your log shows: [ODBC][7270][1383740710.126962][SQLExecDirect.c

Re: DBD::ODBC fails after "Execute immediate success with info"

2013-11-06 Thread Martin J. Evans
5/Changes#pod1.30_6-2011-06-04 So my question is: is it me, ODBC manager, DBD::ODBC or Vertica doing something wrong? Any insight is more than welcome! Thanks Jan To rule out DBD::ODBC being at fault in its ODBC calls I'd need to see a ODBC driver manager trace. You can do this by: 1. ru

Re: (Fwd) Problems with DBD::Oracle package: function plsql_errstr

2013-11-03 Thread Martin J. Evans
the github repository (which you'll find at https://github.com/pythian/DBD-Oracle). As You can see I have defined *sub* *plsql_errarray* which select error info from database and returns them in array reference much more convinient for later use; *plsql_errstr* only converts that array into a single string. Of course one should provide at least two additional parameters to new plsql_errstr function. Martin -- Martin J. Evans Wetherby, UK

DBD::ODBC 1.45 released

2013-10-29 Thread Martin J. Evans
. [BUG FIXES] Fixed RT 84450 - Database Handle Attribute Fetch broken. Thanks to Stephen Oberholtzer for finding and supplying patch. Fixed problem with attributes on bind_col not being sticky. You'll probably only see this if you are using fetchall_arrayref with a slice and setting TYPE or attributes in bind_col first. Martin

Re: (Fwd) Can't use an undefined value as an ARRAY reference at /usr/local/lib/perl/5.14.2/DBI.pm

2013-09-28 Thread Martin J. Evans
Notice the "incompatible change". I vaguely recollect this change. Does 1.618 work for you? Can you find the code which called fetchall_arrayref and show us it as I don't use Koha. Martin -- Martin J. Evans Wetherby, UK

Re: DBD::Oracle installation on AIX

2013-09-23 Thread Martin J. Evans
On 23/09/2013 18:43, Nagendra Singh wrote: Thanks Martin. How can I get UnixODBC trace? Could you please let me know the command. Strange thing is on one Linux machine its working fine and on another Linux machine( Same configuration) its not. Result of odbcinst-j is:- UnixODBC2.2.14 Drivers

Re: DBD::Oracle installation on AIX

2013-09-23 Thread Martin J. Evans
On 22/09/2013 22:41, Nagendra Singh wrote: Hi Martin, Thanks a bunch for looking into this problem. Here are the details asked by you:- PERL Version is v5.10.1 DBI Version is 1.609 DBD::ODBC version is 1.43. Logs file are attached. Regards, Mr. Singh Thank you for the trace file. Your versions

Re: DBD::Oracle installation on AIX

2013-09-22 Thread Martin J. Evans
identify your problem. If this file ends up empty, try again with: DBI_TRACE=15=x.log perl myprogram.pl Martin -- Martin J. Evans Wetherby, UK

Re: Trouble with DBI - bug or rewrite?

2013-09-18 Thread Martin J. Evans
On 18/09/13 10:26, Martin J. Evans wrote: On 18/09/13 09:58, Michael Seaton wrote: Hi there, I and a colleague have been trying to install Koha (an integrated library system written in Perl) onto a server. While we've been mostly successful in installing Koha, we keep getting the foll

Re: Trouble with DBI - bug or rewrite?

2013-09-18 Thread Martin J. Evans
ll_arrayref now detect invalid column names. I vaguely recollect this change. Does 1.619 work for you? Can you find the code which called fetchall_arrayref and show us it as I don't use Koha. Martin

Re: DBD::Oracle installation on AIX

2013-09-14 Thread Martin J. Evans
heck http://cpansearch.perl.org/src/PYTHIAN/DBD-Oracle-1.66/README.help.txt Martin -- Martin J. Evans Wetherby, UK

New DBD::ODBC 1.44_2 development release

2013-09-07 Thread Martin J. Evans
xed RT 84450 - Database Handle Attribute Fetch broken. Thanks to Stephen Oberholtzer for finding and supplying patch. Fixed problem with attributes on bind_col not being sticky. You'll probably only see this if you are using fetchall_arrayref with a slice and setting TYPE or attributes in

Re: odbc_lob_read chunk is short

2013-09-06 Thread Martin J. Evans
On 06/09/2013 17:52, Martin J. Evans wrote: On 06/09/13 09:18, Martin J. Evans wrote: On 05/09/13 20:28, Mike Grau wrote: Hello, I am completely new at this, but I am trying to read a BLOB in chunks via ODBC in Oracle 11g using DBD::ODBC-1.43, unixODBC-2.3.1 and oracle-instantclient11.2-odbc

Re: odbc_lob_read chunk is short

2013-09-06 Thread Martin J. Evans
On 06/09/13 09:18, Martin J. Evans wrote: On 05/09/13 20:28, Mike Grau wrote: Hello, I am completely new at this, but I am trying to read a BLOB in chunks via ODBC in Oracle 11g using DBD::ODBC-1.43, unixODBC-2.3.1 and oracle-instantclient11.2-odbc-11.2. I can read an entire BLOB in one read

RE: odbc_lob_read chunk is short

2013-09-06 Thread Martin Gainty
as mistaken as DBD::Oracle DOES implement blob read although I've not tested it works. Someone, in the distant past attempted an implementation in DBD::ODBC but it does NOT work and is seriously flawed." http://www.nntp.perl.org/group/perl.dbi.dev/

Re: odbc_lob_read chunk is short

2013-09-06 Thread Martin J. Evans
. Bear with me and I'll take another look at that code. If I cannot see anything I might need to send you a new version with slightly different logging. By all means nag me if I don't get back to you by tomorrow. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com

Re: Error running make command for DBI1.51

2013-08-16 Thread Martin J. Evans
lti, okay." This is very old. "/opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:380:24: error: sys/types.h: No such file or directory" This is a serious problem - looks like whoever installed this Perl did not run the script to generate header files. Martin -- Martin J. Evans Wetherby, UK

Re: ODBC Driver failing?

2013-06-27 Thread Martin J. Evans
support is the only sure long term fix. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com

Re: ODBC Driver failing?

2013-06-26 Thread Martin J. Evans
u.sl <http://relclnsu.sl> That explains some things. All the iodbc files are links to odbc and your driver really is named with a space in it. strace it is then - since this pretty much looks ok. Martin On Wed, Jun 26, 2013 at 2:01 PM, Martin J. Evans mailto:boh...@ntlworld.com>> w

Re: ODBC Driver failing?

2013-06-26 Thread Martin J. Evans
On 26/06/2013 20:29, Dan Bent wrote: I have strace, but don't know how to use it. Usually something like: strace -o out.log isql -v mydsn username password then after it hangs hit ctrl/c and look at (paste here) the last 100 lines of out.log Martin On Wed, Jun 26, 2013 at 2:

Re: ODBC Driver failing?

2013-06-26 Thread Martin J. Evans
lete. I think you need to find the equivalent of strace on HPUX and run it on the isql command to see what system calls are being made. Did you say everything is on one box, so networking off that box cannot be the issue? Martin On Wed, Jun 26, 2013 at 12:11 PM, Martin J. Evans mailto:bo

Re: ODBC Driver failing?

2013-06-26 Thread Martin J. Evans
B2INSTANCE. SO also check any profile files for the user doing ODBC. But if you answer the other questions in my other reply I might be able to help more. Martin On Wed, Jun 26, 2013 at 11:46 AM, Jonathan Leffler mailto:jonathan.leff...@gmail.com>> wrote: On Wed, Jun 26, 2013

Re: ODBC Driver failing?

2013-06-26 Thread Martin J. Evans
e done that if the answer is libodbc.so.something then you are probably using the unixODBC driver manager. In that case you should hopefully have an isql binary and you should have an odbc.ini and odbcinst.ini defining your drivers and DSNs. What is in those files. Can you run: isql -v TEST1 username password isql -v TRAIN1 username password isql -v PROD1 username password as you didn't say which one you are using? If you get back with this info I'll help more. Martin -- Martin J. Evans Wetherby, UK

Re: (Fwd) Quick Perl Questions - DBI and DBD

2013-06-12 Thread Martin J. Evans
aware from Oracle that says they cannot change the Oracle client libs so you could hit some incompatibility if you don't recompile. Martin -- Martin J. Evans Wetherby, UK

Re: DBI article in Korean

2013-05-24 Thread Martin J. Evans
On 24/05/13 06:51, Gabor Szabo wrote: Hi, On Wed, May 22, 2013 at 10:08 PM, Martin J. Evans wrote: Another good tutorial - please keep up the good work of promoting Perl. Thanks. I hope others will also help promoting my articles and interviews. "The DSN (Data Source Name) (in the

Re: DBI article in Korean

2013-05-22 Thread Martin J. Evans
d for select stmts and especially multiple stmts in the same SQL e.g., do(q/something; select something from something/); Martin -- Martin J. Evans Wetherby, UK

Re: DBI Module installtion

2013-05-01 Thread Martin J. Evans
a C compiler with another compiler. Martin -- Martin J. Evans Wetherby, UK

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

2013-03-05 Thread Martin J. Evans
I'll find some time to update the pod. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com

Final development release of DBD::ODBC 1.42 series

2013-01-25 Thread Martin J. Evans
atabases so far have complained about this until we ran the test against Derby. Changed to use '100'. RT 80446 - fix spelling mistake - thanks to Xavier Guimar. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com

  1   2   3   4   5   6   7   8   9   10   >