Displaying 20 results from an estimated 700 matches similar to: "Rails AR/SQLServer Unit Test: [6912] failed (but getting better)"
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down...
http://dev.rubyonrails.org/changeset/7769
------------------------------------------------------------------------
r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line
MySQL: speedup date/time parsing.
------------------------------------------------------------------------
U
2007 Dec 05
0
[CruiseControl] RubyOnRails build 8285 failed
The build failed.
CHANGES
-------
Revision 8284 committed by marcel on 2007-12-05 14:40:42
Add examples in the documentation for various assertions. Closes #9938 [zapnap]
M /trunk/actionpack/CHANGELOG
M /trunk/actionpack/lib/action_controller/assertions/response_assertions.rb
M /trunk/actionpack/lib/action_controller/assertions/dom_assertions.rb
M
2006 Aug 15
2
has_many + finder_sql & :include
Hello,
In a model I have:
has_many :things, :finder_sql => '' select * from other_things '' +
'' where id = #{id} ''
When I do MyClass.find(:all, :include => :things) I get a weird error:
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
2006 Jun 21
0
SQLServer Timestamp parsing problem in sqlserver_adapter.rb
So, I''ve used Rails to tie into a legacy system which is on SQL Server
2000 with a required timestamp field, DBTimeStamp. The field is defined
in SQL Server as type timestamp, but when rails is pulling it in, it
appears it may be casting to a datetime format. So, when I try to read or
write to the field, it gives me a parsing error:
NoMethodError: private method
2006 Oct 12
1
did something in revision 68 break stubs?
Hi,
I''ve been a happy user of Mocha for a while now. My current project is
by far the most complicated I''ve ever worked on and Mocha has made
testing it much easier than it would otherwise be.
So, I was highly disturbed to come in this morning, run svn up and find
that something in today''s update broke lots of my tests. I use Mocha as
a Rails plugin under
2008 Jan 02
1
Invalid Dates in sqlserver adapter
/usr/local/lib/ruby/gems/1.8/gems/activerecord-sqlserver-adapter-1.0.0/lib/active_record/connection_adapters/sqlserver_adapter.rb"
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Jan 02
0
Re: RubyOnRails build 8525 failed
Fix for the bad (failing) test here: http://dev.rubyonrails.org/ticket/10664
On Jan 2, 5:33 pm, alexey.verkhov...@gmail.com wrote:
> The build failed.
>
> CHANGES
> -------
> Revision 8522 committed by bitsweat on 2008-01-02 09:03:56
> db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow]
>
> M /trunk/railties/lib/tasks/databases.rake
>
2006 Jan 03
0
has_and_belongs_to_many include problem
hey,
i have users who are in groups, and i have a search form, where i can search on
group, user lastname, and user firstname.
All this is also with pagination.
these are my models
class User < ActiveRecord::Base
has_and_belongs_to_many :groups
end
class Group < ActiveRecord::Base
has_and_belongs_to_many :users
end
in my controller i do this
THIS works (but in need pagination)
@users2
2007 Mar 23
2
Mocha 0.4.0 Hates My App
Hi all -
I''ve recently made the leap from FlexMock to Mocha for mocks within
my app. Today I decided to upgrade from Mocha 0.3.2 to Mocha 0.4.0.
So I updated the gem, started rake and went to get some coffee. I
came back 5 mins later and my units (which were clean) are now
reporting 97 failures (!!!). Every failure reports a callstack like
this:
18) Error:
2007 Feb 06
2
Testing RJS actions
Hi all !
This is my test:
def test_destroy_xhr
Article.expects(:find).with("1").returns(@article = mock("article"))
@article.expects(:destroy).returns(true)
delete :destroy, :id => 1, :format => :js
assert_template "destroy.rjs"
end
And my implementation:
def destroy
@article.destroy
respond_to do |format|
format.html {
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
Skipped content of type multipart/alternative-------------- next part --------------
Index: connection_adapters/abstract/connection_specification.rb
===================================================================
--- connection_adapters/abstract/connection_specification.rb (revision 4617)
+++ connection_adapters/abstract/connection_specification.rb (working copy)
@@ -1,10 +1,21 @@
require
2005 Dec 15
2
Migrations on SQLServer ??
Hello all,
I''ve spent a while looking for a sniff of this on the wiki or google at
large..
Does migrations work for SQL Server on 1.0 ?
--
------------------------------
Joyeux Noël
------------------------------
Peter Fitzgibbons
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Oct 19
3
Selecting datetime values from SQL Server (year < 1970)
All,
Rails 1.1.6.
Any AR find() call that generates a SELECT * type query against a table
with a DATETIME column in SQL Server whose value occurs before 1970 will
fail, because of the coercion of SQL Server datetime types to Time
values in Ruby.
See sqlserver_adapter.rb line 490
(record[col] = record[col].to_time if record[col].is_a? DBI::Timestamp)
If I remove the coercion (just commenting
2009 Jun 09
3
NameError what is it?
I have the following code in app/controllers/processjobs_controller.rb
#
class ProcessJobsController <ApplicationController
def index
@ProcessJobs = ProcessJobs.find(:all)
end
end
#
This is my route file ..
ActionController::Routing::Routes.draw do |map|
map.resources :ProcessJobs
map.connect '':controller/:action/:id''
map.connect
2005 Mar 24
0
PATCH for Active Record 0.9 SQL Server Adapter problem => Rails 0.11does not work with SQL Server
I just checked out the latest sqlserver_adapter.rb from the SVN
repository, and it seems to work fine.
-----Original Message-----
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Neville
Burnell
Sent: Thursday, 24 March 2005 2:25 PM
To:
2009 Jun 08
2
Connecting to SQLServer
New to rails. Installed rails on my XP desktop, and setup my first app
that will use an existing SQLServer database. I am able to connect to
SQLServer using odbc with following code.
require ''rubygems''
require ''ActiveRecord''
ActiveRecord::Base.establish_connection(
:adapter => ''sqlserver'',
:mode => ''odbc'',
:dsn
2006 Mar 13
2
Connectivity to Microsoft SQL Server using ADO
Based on this page:
http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer
using this specification
development:
adapter: sqlserver
database: database_name
host: server_name
username: user_name
password: your_pw_here
in database.yml for your SQL Server connection doesn''t work. Some
debugging code reveals that only the password comes through into
2007 Dec 10
8
could not find activerecord-sqlserver-adapter locally or in a repository
I''m trying to connect to a SQL Server db. I thought I installed the
DBI component per the instructions, but its not working.
When trying to start the ruby server, I get the message:
Please install the sqlserver adapter: `gem install activerecord-
sqlserver-adapter`
But when I try to install the repository, I get this error message:
could not find activerecord-sqlserver-adapter
2007 Mar 14
5
aaf batch_size limits indexing on mssql to 1000 records
hi!
after wondering why i can''t find alot of records i eventually found the
problem in the sqlserver_adapters implementation of "add_limit_offset!".
the problem is when using MSSQL with the sqlserver_adapter paging will
only work when at least one column is defined in ":order".
for example i was indexing a table with 2912 records, the generated sql
for the batches
2005 Jun 13
1
Question on Eager Associations
Hi - I am trying to use eager associations to cut down on database queries.
I have a feeds table, an items table, a categories table, and a
categories_items table.
feeds have items, and items have many categories (and categories can
be assigned to many items), thus the categories_items table which is a
many-many join table.
I do
@feed = Feed.find(1)
which works fine, but now I want to use