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

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

2006 Apr 04
0
Parsing a SQL file directly intoactiverecord::executemethod - Not a vamp I swear
It doesn''t like SET commands, or #Comments, etc. Looks like no way = around this without using forgoing active record. I don''t really want = to do that at this point. --------------------------- Brian Corrigan --------------------------- -----Original Message----- From: rails-bounces@lists.rubyonrails.org = [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brian
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
2006 Dec 01
2
CALL TRANSFER
Hi Guys, I'm implementing my Asterisk step by step, so far the communications between softphones, hardphones with Gateways, voice mail, are working fine. Rightnow I would like to enable Call tranfer (like Traditional PBX) in Blind Transfer and AttendXFER, I'm reading features.conf in accordance to voip-info.org but the transfer doesn't work! Please if you can provide me some examples
2009 May 19
1
National symbols imap search
How does imap server should handle search requests with non latin symbols? Rightnow thunderbird 2.0.0.21 and dovecot1.2rc3 are unable to find any message if I try to search for cyrillic symbols. fts, and squat plugins are enabled
2011 Nov 04
1
Knowledge Base Software
Alle, We recently received a requirement to implement a KB/FAQ solution that must: Web based Be searchable Allow registration of users Keep a history of user queries Allow new queries sent to subject matter experts via email and receive email updates when answers have been posted. Something along the lines of what CAP does using RightNow. Does anyone have any opensource suggestions for this
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",
2013 Dec 19
3
[LLVMdev] LLVM ARM VMLA instruction
Test case name : >> llvm/projects/test-suite/SingleSource/Benchmarks/Misc/matmul_f64_4x4.c - >> This is a 4x4 matrix multiplication, we can make small changes to make it a >> 3x3 matrix multiplication for making things simple to understand . >> > > This is one very specific case. How does that behave on all other cases? > Normally, every big improvement comes with
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.
2013 Dec 20
0
[LLVMdev] LLVM ARM VMLA instruction
Hi Suyog, > I tested it on A15, i don't have access to A8 rightnow, but i intend to test > it for A8 as well. That's extremely dodgy, the two processors are very different. > I don't think i > will get A8 hardware soon, can someone please check it on A8 hardware as > well (Sorry for the trouble)? I've got a BeagleBone hanging around, and tested Clang against a
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: