Re: No line number with RaiseError in DBD::Sybase
- From: douglasg.wilson@xxxxxxxxx (Douglas Wilson)
- Date: Thu, 19 Jun 2008 14:24:31 -0700
On Thu, Jun 19, 2008 at 1:53 PM, Tim Bunce <Tim.Bunce@xxxxxxxxx> wrote:
On Wed, Jun 18, 2008 at 02:14:06PM -0700, Douglas Wilson wrote:
With RaiseError or PrintError set, if DBD::Sybase throws an error, the
error message does not indicate what line number of the program that the
error was on ... or what program/module that the error was in.
I'd guess that that's because sybase error messages tend to end with a
newline character.
Hopefully that's a simple fix for Michael to get into the next release.
You could always send a patch to help out...
Once I found the magic spot, this is the simplest thing I can think of (there
is a lot of conditional concatenating in that function, and some of the
concatenations include newlines):
*** ../DBD-Sybase-1.08/dbdimp.c Thu Apr 19 11:31:19 2007
--- dbdimp.c Thu Jun 19 14:09:45 2008
***************
*** 545,550 ****
--- 545,551 ----
else
retcode = CS_SUCCEED;
+ sv_catpv(DBIc_ERRSTR(imp_dbh), " ");
return retcode;
} else {
if(srvmsg->msgnumber) {
.
- References:
- No line number with RaiseError in DBD::Sybase
- From: Douglas Wilson
- Re: No line number with RaiseError in DBD::Sybase
- From: Tim Bunce
- No line number with RaiseError in DBD::Sybase
- Prev by Date: Out of memory error with DBI - DBD::Oracle
- Next by Date: RE: Generic DBI question about backups
- Previous by thread: Re: No line number with RaiseError in DBD::Sybase
- Next by thread: DBD::Oracle on Darwin 8.11
- Index(es):
Relevant Pages
|