Displaying 20 results from an estimated 600 matches similar to: "Transaction - but no rollback?"
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
2004 Mar 24
1
rsync --files-from with symlink in path
Here is what I have been doing with rsync(This is condinced version of
the main script that runs):
#!/usr/local/bin/bash
SSH=/usr/local/bin/ssh
RSYNC=/usr/local/bin/rsync
SED=/usr/bin/sed
USER=vmladmin
ROLLLISTDIR=/home/vmladmin/rolllists/
ROLLFILE=${ROLLLISTDIR}rollfile.${CELERITYID}
EXCLUDEFILE=${ROLLLISTDIR}rollfile.exclude
RSYNC_OPT="-zrc --delete"
2006 May 25
2
Roaming Profiles
Hi
I am using Mandrake 9.2, Samba 2.4 version as a PDC. How do I enable the
roaming profiles on the server via /etc/samba/smb.conf?
Thx
Morn?
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by FinSource Infrastructure Services' MailMarshal
2012 Apr 08
1
redirect-gateway and p2p-Traffic
Hello,
http://www.tinc-vpn.org/examples/redirect-gateway/ explains how to set up a
default route using tinc. However, in my understanding tinc's p2p traffic is
routed via tinc there:
Assume a network: Client A, Client B and a Server S. A and B have "ConnectTo
S" in their config, S is used as a gateway providing 0.0.0.0/0 . All packets
send from A to B will be delivered to
2012 Dec 02
1
Query node status
Hello folks,
for monitoring purposes I need to query the network status in order to get all a list of all "online" nodes (that are connected to the network right now). How can I do so?
Thanks in advance,
Keep smiling
yanosz
2013 Jul 09
1
Release plans for 1.1?
Hello,
I'm looking forward for release 1.1 esp. tincctl. Are there any release plans yet?
Thanks,
Keep smiling
yanosz
2012 Jul 02
1
IPv6 routed setup
Hello folks,
we're planning an IPv6-Deployment using tinc. A routed tinc-network should connect a couple of wireless access points. In order to avoiding scaling issues, the network should not be run in switched mode.
Our site uses 2001:470:780f::/56 - Each ap gets a single /64 network, to be distributed to its wireless clients.
Example:
ap 1: 2001:470:780f:1::/64
ap 2:
2007 Dec 31
2
episode 73 resulting in error: undefined method `stringify_keys!' for "33":String
I''m working with a similar model in Episode 73, (my scenario is
editing multiple pictures for a product using attachment_fu).
And I''m getting an error when I try the technique suggested:
./views/admin/_form.rhtml
<% for picture in product.pictures %>
<% fields_for "product[picture_attributes][]", picture do |
picture_form| %>
Title: <%=
2009 Feb 05
0
SQL transaction rollback isn't logged !
I''m finding that if I do something like this:
X.transaction { X.create(...); raise(''stop'') }
Then I see the INSERT statement in my logs, but I don''t see the BEGIN
or END for the transaction, or the ROLLBACK.
The transaction is definitely working: Without the raise(), the X
object is created; with the raise(), it is not. In both cases, the
log is
2006 Oct 20
2
how do you manually cause a rollback in a transaction?
how do you manually cause a rollback in a transaction?
I''ve looked everywhere with no suceess. Anyone know?
Thanks in advance
Chris
--
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
2009 Apr 19
1
Cucmber: Mysql::Error: query: not connected: ROLLBACK
Hi,
I ran in trouble with unexpected rollbacks using cucumber 0.3.0.
My feature-file looks like
Scenario: Create Valid Item
Given I start
and the step is
Given /^I start$/ do
get "/items"
end
In my log/test.log I get
SQL (0.2ms) SET NAMES ''utf8''
SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
SQL (0.1ms) BEGIN
Processing ItemsController#index
2010 Jul 23
7
fail rollback transaction with manual raise exception
With :
PostgreSQL 8.4 or postgresql-8.3
rails 2.3.4
pg 9.x or pg 8.x
I test this code:
=========================
class NkiBatch < ActiveRecord::Base
Bank.connection.transaction do
bank = Bank.new(:name => "ddsjdsjdsjk")
bank.save!
raise ActiveRecord::Rollback.new
end
end
and this:
=========================
class NkiBatch < ActiveRecord::Base
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
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
2013 Oct 08
6
Consuming a web service created with Rails, ETL vs Rest?
Hello, I need to consume a web service of an App called RedMine created
with Rails, in order to have a sort of "separate" interface (not the same
as the app) for one of the departments (that interact with the app) to
interact with it and generate some different reports based on the same data.
I don''t know much about either (ETL and Rest), all I know is that ETL seems
to
2006 Jun 15
4
testing with transactions
Hello!
I experienced problems with testing transactions which are supposed to be
rolled back, but are not, because of transactional fixtures eliminating the
inner transaction. Can this be worked around somehow without turning off
transactional fixtures? Maybe savepoints can help this?
Does anyone have any experience with savepoints to achieve nested transaction
functionality? Both Postgres
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
2010 Apr 07
0
Need help with ActiveWarehouse-ETL-0.9.1 PG connection problem
I am trying to load conversion data into a postgresql database using
activewarehouse-etl. I can create a flat file output from the
conversion data without problem. However, when I try to load into the
table using the information contained in config/database.yml I see
this error:
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
base.rb:1959:in `method_missing'':
2005 Nov 30
3
How to do a rollback
Hi. I''d like to know how can i do a rollback after a
Table.new(params:id)?
thank you
--
Posted via http://www.ruby-forum.com/.
2008 Jul 29
0
How to rollback a driver?
Hi,
I have had problems with the Atheros driver under FreeBSD 7-STABLE
(specifically, kernel panics on even trivial network load); under
7.0-RELEASE, I had none. I filed a PR, but I'm not sure how quickly
we can solve the issue. Other than this driver issue, I'd prefer to
use the STABLE branch.
Is it possible to swap out the current ath driver for an older one?
Could I still build it