Displaying 20 results from an estimated 100 matches similar to: "testing with transactions"
2009 Mar 31
4
Mysql Error RELEASE SAVEPOINT active_record_1
Hi, I''m trying to upgrade an app from 2.2.2 to 2.3.2 and I get a bunch
of Mysql Errors : Mysql::Error: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near ''RELEASE SAVEPOINT active_record_1'' at line 1:
RELEASE SAVEPOINT active_record_1
Mysql version is 4.1.22 which supports save points but
2006 Apr 25
2
Capistrano :db role
Hello,
Can someone explain me why Capistrano deploys rails code to both :web and :db
roles, not only to :app role, which is the only role that actually needs this
code.
In my setup I do not want to give any SSH access to :db servers other than
server management, which is done outside Capistrano. So why Capistrano
migrate task needs this access while it could to it from :app server, which
2015 Mar 22
2
[LLVMdev] Mul & div support for wider-than-legal types
On Sun, Mar 22, 2015 at 5:57 AM Joerg Sonnenberger <joerg at britannica.bec.de>
wrote:
> On Fri, Mar 20, 2015 at 08:06:11PM -0700, Tim Northover wrote:
> > > mul can be inlined easily if necessary for arbitrary sizes, but div is
> very expensive.
> >
> > Shall I file a bug for "implement FFT in LLVM"?
>
> I didn't say it is the most efficient
2012 Apr 27
3
rails console --sandbox is only half-baked
Recently I''ve found out some mentions to the "--sandbox" parameter to
the "rails console" command.
And I found the idea interesting, but since I''m using Sequel instead of
ActiveRecord I guessed this wouldn''t work for me.
But after talking about this subject in the Sequel mailing list, Jeremy
Evans has brought to my attention that there are some
2013 Dec 19
0
ZFS on Linux testing
On 12/19/2013, 04:00 , lists at benjamindsmith.com wrote:
> BackupPC is a great product, and if I knew of it and/or it was available
> when I started, I would likely have used it instead of cutting code. Now
> that we've got BackupBuddy working and integrated, we aren't going to be
> switching as it has worked wonderfully for a decade with very few issues
> and little
2008 Apr 04
2
TransactionError
Hi
Today I got an alert mail from my watcher script, telling me that there was no
Mongrel running, and that it started one (so the site was down for a few
seconds.)
This is the first time I got this error (AFAICS), but I''d like to resolve and
prevent it for the future.
From mongrel.log:
** Starting Mongrel listening at 0.0.0.0:foo
** Starting Rails with production environment...
**
2011 May 08
1
Transaction - but no rollback?
Hello,
I''m having trouble with transactions with rails 3.0.3 and mysql 5. I''d
like to import data etl-batch-style:
class Job < ActiveRecord::Base
# ...
def perform_etl
connection.transaction do
extract # some connection.execute / job.update_attribute stuff
transform # some connection.execute / job.update_attribute stuff
end
end
#...
end
2012 Oct 18
3
Issues upgrading RSpec
My specs work fine with this in my Gemfile.lock:
grep rspec Gemfile.lock
rspec (2.11.0)
rspec-core (~> 2.11.0)
rspec-expectations (~> 2.11.0)
rspec-mocks (~> 2.11.0)
rspec-core (2.11.0)
rspec-expectations (2.11.1)
rspec-mocks (2.11.1)
rspec-rails (2.11.0)
rspec (~> 2.11.0)
rspec-rails (~> 2.11)
After "bundle update
2010 Jan 21
2
nested forms and attr_accessable
Rails 2.3.5
I am working on a nested form that assigns roles to users through a
table called clearances. I have attr_acessable turned off globally in
an initializer:
ActiveRecord::Base.send(:attr_accessible, nil)
I have this set in clearance.rb
attr_accessible(:description,
:effective_from,
:role_id,
:superceded_after,
:user_id)
And this is what params looks like after the
2011 Feb 09
0
Mysql2::Error: SAVEPOINT active_record_1 does not exist
Hi,
I''m switching the database of a rails 3 app I have developed from
postgres to mysql so that I can avail of amazon''s rds. Before I make
the change I have been running my test code using mysql on my dev
machine with the mysql2 adaptor . My test code is throwing up some
errors that I haven''t quite been able to get to the bottom of yet.
Basically I have a model that is
2010 Mar 22
0
rspec bug, on Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT active_record_1
hello
can anybody help me with this bug, (this sometimes occur sometimes passes)
1)
ActiveRecord::StatementInvalid in ''MailReader on Simple Tasks should not
accept duplicate email''
Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT
active_record_1
/home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in
2007 May 22
4
Newbie: Am I looking at the right tool?
Hi,
I''m absolutely new to centralized server management, sorry sorry in
advance for any stupid remarks.
Looking on the puppet documentation, I mainly find a lot of info about
how to manage the config files, but nothing about centralized control.
So I''m wandering if I''m looking a the right software package for my needs.
I want to be able to do the following from a
2010 Jul 19
0
Forking and integration tests
Hi All,
I had a bug in one project, that data get duplicated in the DB due to
multiple instances of the application (multiple thins) are accessing the
DB at the same time .. The typical mistake.
Problem fixed.
I just need to write a test code that covers the fixed bug.
I need to simulate the concurrent requests that can result in the
original bug. I thought of many ideas and decided to go with
2007 Jul 22
18
db:fixtures:load order
I was trying to deal with foreign key issues related to order of
fixture loading when I came across this:
http://techpolesen.blogspot.com/2007/04/rails-fixture-tips.html
This got me looking deeper into rails and I noticed that
db:fixtures:load calls Fixtures.create_fixtures once for each fixture
file. However, Fixtures.create_fixtures is capable of taking multiple
files and also handle the
2005 May 13
1
dovecot 1.0-test69 io hangs
I've been testing test69 with pop3 (under Linux and with mbox).
I began testing with a large inbox (11000 mails) and it seems the
communication between dovecot and the mailclient (evolution) stalls after
1000-2000 messages transferred.
I've looked in to the (non-trivial) io functionality of dovecot.
What I see is that io_loop_handler_run() in ioloop-poll.c does not
signal any more data
2003 May 08
3
MMX and extended-MMX acceleration patch for encoding
Hello,
attached is a gzipped patch file to the lib/mcomp.c source file of theora
(as of AnonCVS current version) that implements MMX and extended-MMX
optimizations in the most frequently used functions of the encoder (as
shown by gprof).
This is more a proof of concept than a real request for inclusion into the
source tree. My personal intent was more to look deeper into the MMX
instruction set
2003 Jun 03
1
error
hi,
I've got the following alert window in mozilla (with dovecot):
---------------------------------------
The current command did not succeed. The mail server responded: Error in
IMAP command: Too long argument..
---------------------------------------
although there is not any messages in my imap.log file.
--
Levente "Si vis pacem para bellum!"
2005 May 20
1
pop3/commands.c query
Is this correct ?
cmd_rset()
if (mail_update_flags(mail, MAIL_SEEN,
MODIFY_REMOVE) < 0)
break;
Args seems to be switched.
/Jens
-----------------------------------------------------------------------
'This mail automatically becomes portable when carried.'
-----------------------------------------------------------------------
Jens L??s
2005 May 29
2
1.0-test72
http://dovecot.org/test/
I'm not sure if this was test71-specific or if it also happened with
test70, but anyway IMAP process was hanging in some situations (I think
POP3 hang was fixed though? :). So, fixed that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed
2006 Apr 28
1
errors while testing with imaptest
I get lots of these (in error log):
dovecot: Apr 28 14:50:03 Error: IMAP(jenslt): Corrupted index cache file
/home0/jenslt/.imap/INBOX/dovecot.index.cache: record points outside file
And some of these:
dovecot: Apr 28 14:50:03 Error: IMAP(jenslt): Corrupted index cache file
/home0/jenslt/.imap/INBOX/dovecot.index.cache: field index too large
(2037149797 >= 19)
Should I worry or not?