similar to: Parsing a SQL file directly intoactiverecord::executemethod - Not a vamp I swear

Displaying 20 results from an estimated 1300 matches similar to: "Parsing a SQL file directly intoactiverecord::executemethod - Not a vamp I swear"

2006 Apr 04
0
Parsing a SQL file directly into activerecord::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=B4#Globals = (ActiveRecord::StatementInvalid) SET @rightnow =3D current_timestamp; It appears that Active Record is
2006 Apr 04
1
Parsing a SQL file directly into activerecord::execute method
Hello folks, I''m trying to do something like: 1. db = ActiveRecord::Base.establish_connection(:adapter => "mysql", :database => "app_development", :username => "root") 2. Cmd = File.read(''commands.sql'') <--- Command.sql contains multiple valid SQL statement. I''ve tested this directly by piping it into MySQL from the
2006 Jul 31
2
Problem with dropping the column_id column...
hi there. Has anyone ever have this happen to them where they did one of these raw ''execute fk_'' sql commands in their migrations (like seen in the depot app in the agile rails book when they were building the line item active record...anyways, now i can''t get those foreign keys to delete, nor can i even get the column_id to delete too..so weird.. humm..just
2006 Mar 28
1
Efficiently convert this SQL statement to ActiveRecord loop
Hey Folks, My app compares the last known set of files located on a series of servers against a current snapshot for auditing purposes. Its working really well, and I''ll open source it when its complete! Here''s my current issue (and forgive me, I started life as a DBA and I constantly want to revert to connection.execute.) The tables to store my objects are
2006 Mar 17
1
Re: Rails SQL Server adapter
Hey Ryan, I asked this question awhile back, but any support planned for table returning functions, or stored procedures? I''m envisioning basically a mutable model class where you have 1 or more instance variables defined (with default values) that are used in the SQL queries as input parameters. When you instantiate the class you can specifically define these parameters or use the
2010 Feb 23
1
Rails on Snow Leopard
In particular, if you''re putting Rails on Snow Leopard to work on a project that you started on Linux. If you run rake db:create and see an error like this: Couldn''t create database for {"reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql",
2011 Jun 13
0
Sims 3 and the DVD bug. Some questions.
I have come over to wine from Cedega. I love wine by the way. Sims 3 on Cedega saw the DVD with no issues, however since coming over to wine, I need a no cd patch. I applied the wine patch in bug 26273, it now sees the DVD but cannot verify the authenticity of the DVD and recommends I "Contact my Administrator!" I note that in the bug a winetrick was used with the file type, does any
2017 Feb 06
0
install of audacity kills audio
# uname -r 3.10.0-514.6.1.el7.x86_64 # cat /etc/centos-release CentOS Linux release 7.3.1611 (Core) Prior to the below the sound/audio on my system worked just fine. Then a yum of install of audacity with dependencies: ... Downloading packages: (1/6): vamp-plugin-sdk-2.5-4.el7.x86_64.rpm | 172 kB 00:03 (2/6): wxGTK-2.8.12-20.el7.x86_64.rpm | 2.9 MB 00:00
2018 Jul 02
0
C++11 and GCC 5+
This may be common knowledge to some, but it was new to me. Libraries that use C++11 and are compiled with GCC 4.8.x that CentOS 7.x has are NOT binary compatible with GCC 5.x or newer. It seems to only effect C++11. What you have to do - create /opt/gcc55 (or whatever) Rebuild any libraries that use C++11 that you need in something compiled with GCC 5+ and install them within that prefix.
2019 Aug 04
1
iconv: embedded nulls when converting to UTF-16
R-devel community: I have encountered some unexpected behavior using iconv, which may be the source of errors I am getting when connecting to a UTF-16 -encoded SQL Server database. A simple example is below. When researching this problem, I found r-devel reports of the same problem in threads from June 2010 and February, 2016, and that bug #16738 was posted to Bugzilla as a result. However, I
2006 Mar 16
6
File Auditing with rails - File I/O issue
Hey Folks, I''ve written a script to generate a list of all files on a machine, then zip the results. ?I''m going to stick a web front end on it, and use it to audit some file servers. The problem is that the ZIP compression/decompression isn''t working, but its not what you might think. ?The script completes, but seems to not actually write anything. Here is a short
2006 Jul 15
2
Database Config as DSL
In listening to this week''s Ruby on Rails Podcast the issue of YAML came up, and it got me thinking. Yes, YAML is very simple and cleanly defines both the database configuration and fixtures, but couldn''t the same thing be accomplished in Ruby? Jamis and others have encouraged the use of DSLs to simplify and clarify code. Since Django (whose author was on the podcast) uses
2006 Apr 04
0
New Rails Group - Albany, NY Area
Hello folks, We have started a new rails community in the Albany, Schenectady, Troy, Saratoga (Tech Valley) are of NY. For now, we have a little listserve up and running. To join, go to www.techvalleyonrails.com Best, Brian --------------------------- Brian Corrigan ---------------------------
2006 Apr 17
0
3rd member
Wow.. We have a 3rd member on the list. Now Mubs and I aren''t just talking to each other! Eric, say hi! Eric, who are you.. what do you do? --------------------------- Brian Corrigan ---------------------------
2006 Mar 09
0
Re: Displaying related tables in forms.. probably an easy qu
Steve - That was the issue.. It seems obvious now, but I needed to reference Property.PropertType.name instead of property.propertytype.name Thanks!! Brian -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Steve Koppelman Sent: Wednesday, March 08, 2006 5:00 PM To: rails@lists.rubyonrails.org Subject: [Rails] Re:
2006 Mar 16
0
ZLIB::GzipWriter - Strange file encoding?
Hey Folks, I have this code: Zlib::GzipWriter.open("file.gz") do |gz| gz.write(File.read("file.csv")) end Unfortunately this file doesn''t want to open correctly in UltimateZip. It shows a file inside, but doesn''t allow you to extract it. Am I missing something here? Seems pretty cut and dry... --------------------------- Brian Corrigan
2006 Mar 20
1
Migrations with multi-column indexes
Hey Folks, I can''t really glean this from the documentation. Is there a way to do: add_index(table_name, column_name, index_type) within my migration for an index that spans multiple columns? Ie: A covering index on FIRST_NAME, LAST_NAME or something like that? Best, Brian --------------------------- Brian Corrigan ---------------------------
2019 Jun 30
0
Mac OS & Folder Timestamps
On 29/06/2019 19:38, David Corrigan via samba wrote: > So this issue might not strictly a Samba problem, but it happens to be > where I found the issue and maybe there's a solution in the server or > someone who's familiar with the problem. Basically I'm using a Pi as a > small nas. I have a folder /media/ and a script that mounts usb drives > there automatically. So I
2019 Jun 30
0
Mac OS & Folder Timestamps
On Sat, Jun 29, 2019 at 2:40 PM David Corrigan via samba <samba at lists.samba.org> wrote: > > So this issue might not strictly a Samba problem, but it happens to be > where I found the issue and maybe there's a solution in the server or > someone who's familiar with the problem. Basically I'm using a Pi as a > small nas. I have a folder /media/ and a script that
2010 Aug 01
2
[PATCHES] Smartjog PatchDump
(answering both mails in one, as they call back each other) Michael Smith <msmith at xiph.org> writes: > Can you file bugs and attach the patches to them in our bugtracking > system? http://trac.xiph.org/ Sorry, I really don't feel like creating 3x tickets right now =) > Mail dumps of patches are pretty much guaranteed to not get merged. Understandable. > From a very