[PATCH] DBI::TINYINT constant used instead of DBI::SQL_TINYINT



I think that DBD::File at line 392 has a mistake in
DBI::SQL_TINYINT() constant name (`DBI::TINYINT').

Attached is a patch against DBI 1.51 (and DBD::File v0.34)
that should solve this problem.

The actual result of this problem is the following error message:

Can't locate auto/DBI/TINYINT.al in @INC (@INC contains: ... .) at
/opt/perl/lib/site_perl/5.8.6/x86_64-linux/DBD/File.pm line 384

I didn't understand clearly what triggers the error,
may be the `quote($value, $type)' call?

If useful to you, I can also file a bug on rt.cpan.org.

--
Cosimo


diff -u -Naur DBI-1.51/lib/DBD/File.pm DBI-1.51_cosimo/lib/DBD/File.pm
--- DBI-1.51/lib/DBD/File.pm 2005-03-14 17:39:17.000000000 +0100
+++ DBI-1.51_cosimo/lib/DBD/File.pm 2006-06-27 09:54:36.087829379 +0200
@@ -389,7 +389,7 @@
$type == DBI::SQL_FLOAT() ||
$type == DBI::SQL_REAL() ||
$type == DBI::SQL_DOUBLE() ||
- $type == DBI::TINYINT())) {
+ $type == DBI::SQL_TINYINT())) {
return $str;
}
if (!defined($str)) { return "NULL" }



Relevant Pages

  • Re: [PATCH] a few small mconf improvements
    ... conf.c and qconf.cc do the same, it's a personal preference. ... The patch adds a check of the return value and bails out if ... That error message is as useful to the normal user as a segfault - mconf ... report of a crash or if you get a report that mconf spewed an error ...
    (Linux-Kernel)
  • Re: unspecified spotential security flaw
    ... I have uninstalled the patch and the error message went away. ... Microsoft Product Support Services at 1-866-PCSAFETY. ... charge for support calls that are associated with security updates. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: DBI AND DBD-ORACLE
    ... Subject: DBI AND DBD-ORACLE ... I typed uninst DBI and got an error message. ... uninstall DBD-Oracle successfully and tried to reinstall but got another ...
    (perl.dbi.users)
  • Re: AUTHENTICATION TO APPLY SP3
    ... When I apply the patch it asks me to choose ... I only have one instance of SQL ... >error message at all, ... >> These accounts and passwords are good because I can get ...
    (microsoft.public.sqlserver.security)
  • question about kill PIDTYPE_TGID patch
    ... the error message below: ... this is because of the PIDTYPE_TGID patch. ... unsigned long pidAddr, headAddr, nextAddr; ...
    (Linux-Kernel)