Possible Bug in mysql-ruby 2.7

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

zdennis wrote:

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

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?

···

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