Update to latest version with a fix to handle
type conversions in amavisd.
Comments ? ok ?
 Cheers
  Giovanni
Index: Makefile
===================================================================
RCS file: /var/cvs/ports/databases/p5-DBD-mysql/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile    17 May 2018 09:20:07 -0000      1.53
+++ Makefile    8 Jan 2019 08:01:17 -0000
@@ -1,15 +1,14 @@
 # $OpenBSD: Makefile,v 1.53 2018/05/17 09:20:07 espie Exp $
 
 COMMENT=               MySQL drivers for the Perl DBI
-DISTNAME=              DBD-mysql-4.042
-REVISION =             0
+DISTNAME=              DBD-mysql-4.049
 
 CATEGORIES=            databases
 
 MAINTAINER=            Giovanni Bechis <giova...@openbsd.org>
 
 MODULES=               cpan databases/mariadb
-CPAN_AUTHOR=           MICHIELB
+CPAN_AUTHOR=           DVEEDEN
 
 # Perl
 PERMIT_PACKAGE_CDROM=  Yes
Index: distinfo
===================================================================
RCS file: /var/cvs/ports/databases/p5-DBD-mysql/distinfo,v
retrieving revision 1.28
diff -u -p -r1.28 distinfo
--- distinfo    20 Mar 2017 14:06:35 -0000      1.28
+++ distinfo    8 Jan 2019 07:34:28 -0000
@@ -1,2 +1,2 @@
-SHA256 (DBD-mysql-4.042.tar.gz) = 2ttohHiNw/30CxO3LYxg1ag2gMwq7sdRXD5ZmeBktFU=
-SIZE (DBD-mysql-4.042.tar.gz) = 160028
+SHA256 (DBD-mysql-4.049.tar.gz) = z78CDx5TodnUirlkrx4/oCKNxPXfbaZuaRxcAcrgQTs=
+SIZE (DBD-mysql-4.049.tar.gz) = 160889
Index: patches/patch-dbdimp_c
===================================================================
RCS file: patches/patch-dbdimp_c
diff -N patches/patch-dbdimp_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-dbdimp_c      9 Jan 2019 07:44:24 -0000
@@ -0,0 +1,36 @@
+$OpenBSD$
+
+backport fix for issue 
+https://github.com/perl5-dbi/DBD-mysql/issues/78
+
+Index: dbdimp.c
+--- dbdimp.c.orig
++++ dbdimp.c
+@@ -4436,9 +4436,8 @@ process:
+         case MYSQL_TYPE_DOUBLE:
+           if (!(fields[i].flags & ZEROFILL_FLAG))
+           {
+-            /* Coerce to dobule and set scalar as NV */
+-            (void) SvNV(sv);
+-            SvNOK_only(sv);
++            /* Coerce to double and set scalar as NV */
++            sv_setnv(sv, SvNV(sv));
+           }
+           break;
+ 
+@@ -4449,13 +4448,11 @@ process:
+             /* Coerce to integer and set scalar as UV resp. IV */
+             if (fields[i].flags & UNSIGNED_FLAG)
+             {
+-              (void) SvUV(sv);
+-              SvIOK_only_UV(sv);
++              sv_setuv(sv, SvUV(sv));
+             }
+             else
+             {
+-              (void) SvIV(sv);
+-              SvIOK_only(sv);
++              sv_setiv(sv, SvIV(sv));
+             }
+           }
+           break;

Reply via email to