Displaying 20 results from an estimated 70000 matches similar to: "transaction question"
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
2006 May 16
5
Transactions in RoR
Hi,
Does anyone knows how to manage transactions in RoR.
Thanx
2010 Mar 31
2
Bar plots with bars made of stacked text
I would like to make bar plots where the bars are composed of text like this:
http://www.thomaslevine.com/lowres/text_bars.png
Is there a package that will help me with this? Thanks
Tom
2009 Nov 05
2
Seeing "Corrupted transaction log file" error messages.
In V1.1.15 that I fell back to. Again:
# 1.1.15: /usr/local/etc/dovecot.conf
# OS: AIX 3 0001378F4C00
listen: *:143
ssl_listen: *:993
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_processes_count: 12
login_max_processes_count: 774
max_mail_processes: 1024
verbose_proctitle: yes
first_valid_uid: 200
2006 May 31
7
Rails, Transactions, and statements
Hi, I have a problem where I need an auto-incremented id back from the
database for a statement that has yet to be committed. The operation
that uses the id may fail, and if so, I need to rollback the database.
I can''t figure out how to send only the statement to the database
without the commit without sending over hard coded SQL. This is what I
started out with:
1 def add_album
2006 Aug 08
3
Database transactions
Hello,
I have an application where I need to create two records in a database
transaction.
ie:
begin
User.transaction(user) do
User_details.transaction(user_details) do
user.save
user_details.save
end
end
end
rescue
flash[:notice] "Insert rolled back... but why..??"
end
>From reading the Agile book, I gather that once I wrap the
2006 May 10
6
Migrations don''t really support transactions
I read in various places that although migrations aren''t transactional, all
you need to do is wrap you migration method in "ActiveRecord::
Base.connection.transaction do"
to make the self.up or self.down transactional. In my experience (Rails +
PostgreSQL), this doesn''t work very well. If my migration hits an
exception, any tables that were touched remain modified.
2006 Apr 28
7
Active Record save doesn''t save! (or throw an exception)
PLEASE help me - this is making me insane.
Can anyone suggest any reasons for this behavior? It occured previously,
then went away and is now back.
In Task.rb (where task is an active record subclass)
def clear_schedule
puts "clearing schedule for task"
scheduled_end_date= nil #reset the
scheduled end date
save
halt.
2006 Aug 04
2
how to remove ID from stylesheet_link_tag?
When I use stylesheet_link_tag, the results come back with a timestamp
ID, like this:
<link href="/stylesheets/style.css?1154009736" media="screen"
rel="Stylesheet" type="text/css" />
I don''t want the query string and ID on the end, but I can''t see how to
disable this in the docs. How do I do this?
thanks,
jeff
--
Posted via
2006 May 23
4
''key not found'' problem with saving model object.
Hello,
I have the following structure:
model foo
has_many :bars:,
:dependent => true
end
model bar
belongs_to :foo
end
In my action, when i try to save foo:
def save
begin
f = foo.new
f.a = 5
begin
b = bar.new
b.a = 10
f.bars << b
rescue Exception => exc
...
end
f.save! <-- This does not happen
2006 Jul 12
1
flash object not clearing?
My flash object stays persistent even after I redirect to the next page.
For example, I may set flash[:foo], then redirect to /bar, which
successfully shows the flash[:foo] field. But if I then click on
another page that also displays flash[:foo], it shows the same contents
from the prior page. The flash[:foo] field persisted past the first
page redirect. but I thought it was supposed to
2006 Mar 21
2
Validation to make sure associations don''t change?
I have a main form representing the model, let''s call that ''Order'', and a
partial displaying its'' OrderLines.
I use the bulk update methods to initialize model objects directly from form
data, leaving validation of business logic to the model. As AR likes to
write stuff before i do an explicit save, I wrap the whole update in a
manual transaction.
This works
2005 Mar 31
4
Transactions
I cant seem to find much information apart from the basics on
transactions in rails. I have 5 nested transactions, and am performing
the following basic operations:
@whatever1.transaction do
@whatever2.transaction do
....
@whatever2.something = "foo"
@whatever1.something = "bar"
@whatever1.save
@whatever2.save
.....
end
end
((( I had tried using
2006 May 15
1
Trying to get values to display on horizontal barchart
Hello,
R 2.3.0
Windows XP
I have spent quite a bit of time trying to resolve my problem below, which included a R site search.
The "vertical bars" syntax below produces a vertical bar chart with the values displayed above each bar. I want to cast this graphic horizontally, but I have not been able to arrive at a suitable outcome. The best I have been able to do, using the second block
2018 Jun 27
2
sambaundoguididx fails with ldb transaction error
Hi,
trying to revert 4.8.0/1 issues with sambaundoguididx and getting following:
Traceback (most recent call last):
File "/root/sambaundoguididx", line 66, in <module>
db.modify(modmsg)
_ldb.LdbError: (32, 'ldb_wait from (null) with LDB_WAIT_ALL: No such
object (32)')
A transaction is still active in ldb context [0x56060ac2a310] on
2005 Nov 14
1
YUM error "can't create transaction lock"
A short while ago I reported a network interruption while
performing a YUM update on a server. A check of the logs as
recommended by a list member indicated that the update process had
succeeded. However, I am now encountering the following problem on
that same server and my nastily suspicious mind is trying to tell
me that the previous event and this situation are somehow related.
>
2007 Sep 11
6
xs transaction
Seems currently xenstore transaction provides confusing message
in different places:
a) comment of xs_transaction_start says "You can only have one
transaction at any time." However do_transaction_start allows up to
10 transactions created, as long as all other existing transaction
channel is idle at the time (conn->transaction == NULL)
b) when multiple transactions can be
2017 Jun 20
2
Unable to get transaction opinfo for transaction ID gluster version 3.6
Hi,
I have some blocked transactions. Does anybody have some advise on how I
could mend this because I am unsure where to start?
I believe this broke after I issued some set auth.allow commands:
# gluster volume set oem-shared auth.allow
10.54.54.57,10.54.54.160,10.54.54.161,10.54.54.213,10.54.54.214,10.22.9.73,10.22.9.74
Kind regards, Sophie
[2017-06-20 13:28:24.052623] E
2006 May 04
2
Enterprise Database Tier (XA transactions, COBRA and MIDAS)
I am developing a large scale financial application which is going to be
very intensive write-wise, and use a lot of transactions.
I can see how the the web and application servers can be scaled and load
balanced quite easily, but not the database tier.
The setups I have looked at so far seem to deal with coping with a lot
of reads, and minimal writes - this maybe because they are largely
2006 Dec 22
3
Corrupted transaction log
I've just installed dovecot and am trying to use it to access my Maildir
folders. Unfortunately:
1 SELECT INBOX
1 NO Internal error occurred. Refer to server log for more information. [2006-12-22 18:06:11]
Log says:
Dec 22 17:55:56 sphinx dovecot: IMAP(pdw): Corrupted transaction log file /home/pdw/Maildir/dovecot.index.log: record size too small (type=0x20, offset=24, size=0)
Dec 22