Re: [CDBI] Storing integer arrays

Bill Moseley <[email protected]> Wed, 21 Mar 2012 07:20:57 +0700
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <CAKhN_m6XfooiNsXUwTyc3u6qp2W-8wyN0JQxfVSN+pVgMW63UA@mail.gmail.com>
--===============1896005914==
Content-Type: multipart/alternative; boundary=e89a8fb20170b7ab0b04bbb5c5e9

--e89a8fb20170b7ab0b04bbb5c5e9
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 20, 2012 at 11:44 PM, Fred Moyer <fred-3BbYVzP+qW3iLJGoLe449gC/[email protected]> wrote:

> On Tue, Mar 20, 2012 at 2:25 AM, Bill Moseley <[email protected]> >
> >    list_of_integers    integer[]  NOT NUL,
>
> I ran into this exact same problem a couple months ago, and solved it
> by adding serialization and deserialization code for the arrays in the
> model accessor.  Mostly a '{' . join(',', @ints) . '}' type operation.
>

Thanks Fred, that works great.


-- 
Bill Moseley
[email protected]

--e89a8fb20170b7ab0b04bbb5c5e9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 20, 2012 at 11:44 PM, Fred Moyer <span dir=3D"ltr">&lt;<a href=
=3D"mailto:fred-3BbYVzP+qW3iLJGoLe449gC/[email protected]">fred-3BbYVzP+qW3iLJGoLe449gC/[email protected]</a>&gt;</span> wr=
ote:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class=3D"im">On Tue, Mar 20, 2012 at 2:25 AM, Bill Moseley &lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt; &gt;<br>
&gt; =A0=A0 list_of_integers =A0 =A0integer[] =A0NOT NUL,<br><br>
</div>I ran into this exact same problem a couple months ago, and solved it=
<br>
by adding serialization and deserialization code for the arrays in the<br>
model accessor. =A0Mostly a &#39;{&#39; . join(&#39;,&#39;, @ints) . &#39;}=
&#39; type operation.<br></blockquote><div><br></div><div>Thanks Fred, that=
 works great.=A0</div><div><br></div><div><br></div></div>-- <br>Bill Mosel=
ey<br>

<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a><=
br>

--e89a8fb20170b7ab0b04bbb5c5e9--


--===============1896005914==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ClassDBI mailing list
ClassDBI-Ra3b/[email protected]
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

--===============1896005914==--