Displaying 2 results from an estimated 2 matches for "executemethod".
2006 Apr 04
0
Parsing a SQL file directly intoactiverecord::executemethod - Not a vamp I swear
...---------------
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org =
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brian Corrigan
Sent: Tuesday, April 04, 2006 2:11 PM
To: rails@lists.rubyonrails.org
Subject: RE: [Rails] Parsing a SQL file directly =
intoactiverecord::executemethod - Not a vamp I swear
In an effort to not be a vamp. (Thanks Amy) Here is the error message =
I''m getting.
Mysql::Error: #42000You have an error in your SQL syntax; check the =
manual that corresponds to your MySQL server version for the right =
syntax to use near ''=A1=C9=A8[=A9...
2006 Apr 04
0
Parsing a SQL file directly into activerecord::executemethod - Not a vamp I swear
...-----------------
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org =
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brian Corrigan
Sent: Tuesday, April 04, 2006 12:41 PM
To: rails@lists.rubyonrails.org
Subject: [Rails] Parsing a SQL file directly into =
activerecord::executemethod=20
Hello folks,
I''m trying to do something like:
1. db =3D ActiveRecord::Base.establish_connection(:adapter =3D> "mysql",
:database =3D> "app_development", :username =3D> "root")
2. Cmd =3D File.read(''commands.sql'') <--- Comm...