Re: stopping numification

[prev] [thread] [next] [Date index for 2005/05/25]

From: Dan Sully
Subject: Re: stopping numification
Date: 14:09 on 25 May 2005
* Simon Wistow shaped the electrons to say...

>I don't even need the 
>
>	__PACKAGE__->__data_type({});
>	__PACKAGE__->data_type(version => DBI::SQL_BINARY);
>
>trick.
>
>So, yes. It does appear to be a DBD::SQLite problem - I was just getting 
>confused.

Try this patch, which puts the check back to how 1.07 did it:

diff -ru DBD-SQLite-1.08/dbdimp.c DBD-SQLite-1.08.fixed/dbdimp.c
--- DBD-SQLite-1.08/dbdimp.c	Tue Feb 22 08:09:23 2005
+++ DBD-SQLite-1.08.fixed/dbdimp.c	Mon Feb 28 23:23:59 2005
@@ -357,7 +357,7 @@
             char * data = SvPV(value, len);
             retval = sqlite3_bind_blob(imp_sth->stmt, i+1, data, len, SQLITE_TRANSIENT);
         }
-        else if (looks_like_number(value)) {
+        else if (SvNIOK(value)) {
             /* bind ordinary numbers as numbers - otherwise we might sort wrong */
             retval = sqlite3_bind_double(imp_sth->stmt, i+1, SvNV(value));
         }


-D
        -- 
        <weezyl> $6.66: The Value Meal of the Beast.

(message missing)

stopping numification
Simon Wistow 15:46 on 24 May 2005

Re: stopping numification
Matt S Trout 16:01 on 24 May 2005

Re: stopping numification
Simon Wistow 16:31 on 24 May 2005

Re: stopping numification
Christopher Laco 17:13 on 24 May 2005

Re: stopping numification
Simon Wistow 10:47 on 25 May 2005

Re: stopping numification
William Ross 11:46 on 25 May 2005

Re: stopping numification
Simon Wistow 11:59 on 25 May 2005

Re: stopping numification
Dan Sully 14:09 on 25 May 2005

Re: stopping numification
Gordon Haverland 16:55 on 24 May 2005

Re: stopping numification
Simon Wistow 17:06 on 24 May 2005

Re: stopping numification
Gordon Haverland 22:43 on 24 May 2005

Re: stopping numification
Tony Bowden 11:57 on 25 May 2005

Generated at 20:11 on 05 Jun 2005 by mariachi v0.52