Forum: Ruby Possible Bug in mysql-ruby 2.7

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F0223b1193ecc3a935ce41a1edd72e42?d=identicon&s=25 zdennis (Guest)
on 2006-05-03 18:57
(Received via mailing list)
-----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-----
F0223b1193ecc3a935ce41a1edd72e42?d=identicon&s=25 zdennis (Guest)
on 2006-05-03 18:57
(Received via mailing list)
-----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-----
E34b5cae57e0dd170114dba444e37852?d=identicon&s=25 Logan Capaldo (Guest)
on 2006-05-03 18:58
(Received via mailing list)
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 topic is locked and can not be replied to.