Possible Bug in mysql-ruby 2.7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to store very small gzipped files in my mysql database. The
storage works great, but when I retreive the data some
fields are interpolated.

Examples:
\010 becomes \007
\012 becomes \032

There may be others, but those are what I have noticed thus far. I am
using the Mysql.quote method to store my data. I am runnng:
ruby 1.8.4 (2005-12-24) [i486-linux]
mysql 5.0.20-1
mysql-ruby 2.7

Thanks,

Zach
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEVW8uMyx0fW1d8G0RAiGHAJwNB5zqEz66jQbkAP22tu7V15mGewCeOfrm
I+DHntdIkiILhDvmG+E6jvc=
=N+QZ
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

zdennis wrote:

mysql-ruby 2.7

This does not appear to be a bug in mysql-ruby… appears to be some of
my code…

Zach
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEVXv/Myx0fW1d8G0RAsulAJ43lFmjpSVqW8+465/ZFU2z7y3MigCfVRfq
P32F1giTWNOkYne+JLpdzps=
=eyYP
-----END PGP SIGNATURE-----

On Apr 30, 2006, at 11:09 PM, zdennis wrote:

This does not appear to be a bug in mysql-ruby… appears to be
some of my code…

Zach

Are you on windows? If so, are you using the “b” (binary) flag when
you open your files?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs