Forum: Ruby on Rails Insert blob - rails 1.0.0 mysql 3.23 - sql syntax error

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.
78426f365f660355d52992c272a770ee?d=identicon&s=25 Chris Sendall (Guest)
on 2006-01-17 14:30
(Received via mailing list)
Hi,

Experimenting with upload and insert a picture into a MySQL database -
using
Agile Web Development with Rails p362-3.

We have rails 1.0.0 and MySQL 3.23.58.

I get an error
'You have an error in your SQL syntax near'
because rails uses the x'ffdbff....' notation for the blob which is not
available until MySQL 4

Is there a way of switching Rails to use the 0xffdbff... notation?

Thanks
Chris

--

Chris Sendall
University of Cambridge
This topic is locked and can not be replied to.