Displaying 20 results from an estimated 10000 matches similar to: "Independent SQL connections...race condition?"
2006 Feb 27
5
Database connections...so many connections!
Hello all.
I am currently running a very simple ruby app. It connects to an Oracle
server using the OCI8 adapter.
I have two controllers, each one connects to a different schema on the
server, I looked at the WIKI that had details of multiple database
connections
(http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases), I
moved the code from the application controller into each
2006 Jan 17
5
NOOB: Numeric only input...can it be done on client?
I was wondering if there''s a way to limit what a user is typing on the
keyboard to only valid numeric input. Is there a simple plugin or something
which would allow this? I guess with AJAX it could also be one. Has anyone
already solved this requirement? Thanks in advance.
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jan 13
1
How to disconnect to a database????
Hi,
We have experienced some problems with
ActiveRecord::Base class of Ruby-Rails. We are
building a web-application based on the Ruby-rails
framework and the web-application needs to access to
difference databases, so we do not pre-define our
database accesses in the database.yml file. In fact,
we are using the
ActiveRecord::Base.establish_connection() to connect
to our database, the function
2006 Jan 24
4
Parse request URL.
Hello all.
Due to the mistakes of the company before I joined ;) I am stuck with a
multiple database setup. I am planning on parsing the REQUEST_URL to
decide which controller is being accessed and basing the
establish_connection on that. Before I go messing around with regexps I
was wondering if rails has a built in function for parsing URLS. I have
googled around a bit and seen net/http
2009 Sep 17
3
[Bug 1651] New: Possible race condition using local port forwarding with short lived connections
https://bugzilla.mindrot.org/show_bug.cgi?id=1651
Summary: Possible race condition using local port forwarding
with short lived connections
Product: Portable OpenSSH
Version: 5.2p1
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: ssh
2006 Jan 18
5
NOOB Ajax question: handling form input
Hi,
I was trying to modify how a standard edit form works so I could use Ajax to
truncate a zip code field which became too long as the user is entering the
value. The form was generated by the generate scaffold script. The form is
filled with default data taken from the current record. I coded the
following changes to a field in the _form.rhtml file:
<%= text_field
2006 Jan 05
3
MS SQL server connection problems
I am trying to connect to a remote sql server and I am getting the
following error:
c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:57:in `connect'': Open
(DBI::Databa
seError)
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access
denied.
HRESULT error code:0x80020009
Exception
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 Oct 12
2
Too Many Mysql connections
In my app, for three models: foo,bar and baz, the database connection
is made to a different database and hence in model code:
class Foo < ActiveRecord::Base
establish_connection :diff_database
end
class Bar < ActiveRecord::Base
establish_connection :diff_database
end
class Baz < ActiveRecord::Base
establish_connection :diff_database
end
Now, the problem is, if is use the above
2006 Jun 29
1
session management not working for me in an exceptional condition
I have an RoR application(parent) which can be used to kickstart other RoR
applications(child).
A user can log in to parent RoR and then start child RoR''s and then visit
that RoR using one of the links provided in parent RoR; I have following
html code is parent RoR list page for visiting an child RoR
<input type=button onclick="visitApp1()"
2006 Mar 27
5
Accessing Session Object from a model
i realise that this goes against the basic idea of the MVC architecture,
but i''ve found myself in a situation where i need to get information
about the current user in a model & i''m not sure how to do it.
Basically, we have a product where each customer has their own profile
with data stored in a separate database. There are some tables in a
common
2011 Sep 13
4
Changing adapters in ActiveRecord does not change the generated sql
If I establish a new connection with a new adapter (ie. switch from mysql to
postgresl) the generated sql is still mysql specific. I tried all sorts of
reset methods on AR::Base but to no avail. There must be something being
memoized on ActiveRecord base that has to do with the adapter and it doesn''t
get cleared when you establish a connection with a new adapter.
I know this
2008 Jul 17
2
Add a SQL Statement to every query
Hi,
im trying to create an application for multiple customers, where data
shouldnt be accessible to others. So ive added a customer_id to every
db-table where it matters.
Question: How can i add a Statement to find and other sql-commands so
i just pull out the ones belong to the customer, without having to
add :customer => customer to every find query? Whats the easiest way?
a before_filter
2006 Apr 04
0
Parsing a SQL file directly into activerecord::executemethod - Not a vamp I swear
In an effort to not be a vamp. (Thanks Amy) Here is the error message =
I''m getting.
Mysql::Error: #42000You have an error in your SQL syntax; check the =
manual that corresponds to your MySQL server version for the right =
syntax to use near ''=A1=C9=A8[=A9=B4#Globals =
(ActiveRecord::StatementInvalid) SET @rightnow =3D current_timestamp;
It appears that Active Record is
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
2008 Jul 10
1
Race condition in sshd
Hello,
This bug exists in 5.0p1. I apologize that I couldn't test against HEAD.
I _believe_ I have found a race condition in sshd. In the v2 protocol, after a
connection, the accepting process forks in privsep_preauth(). The parent
executes monitor_child_preauth() to allow certain privsep requests necessary
for authentication. The unprivileged child runs do_ssh2_kex() followed by
1999 Sep 23
2
Race Condition cont'd
Thank you Paul for your response. Perhaps I can give a bit more info:
RS/6000 H50 w/AIX 4.3.2 running Samba 2.0.5a
PIII-450 NT4sp4 w/128MB
I indicated yesterday that a race condition appeared to be happening. I later
remembered that I turned on level2 oplocks on two read only shares as the last
tunings we did before this began to happen. I got the info from the Speed.txt
document in hopes of
2013 Mar 13
3
Race condition in sending gratuitous ARP for live migration ?
Hi,
So, the issue is a fairly common one: Network doesn''t work for like a
minute or so after a live migration.
The setup is a debian wheezy dom0 with xen 4.1.2 running 3.6.11
kernel. The domU is a Ubuntu 12.04 with a 3.2 kernel. The networking
setup uses bridges on the dom0. I also made sure that the bridge
forwarding delay is set to 0.
The VM doesn''t initiate any network
2002 May 09
1
[Bug 238] New: sshd.pid file written AFTER key generation causes race condition
http://bugzilla.mindrot.org/show_bug.cgi?id=238
Summary: sshd.pid file written AFTER key generation causes race
condition
Product: Portable OpenSSH
Version: 3.1p1
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: sshd
AssignedTo:
2014 Oct 24
1
[Bug 2300] New: reexec.sh and login-timeout.sh fail due to a race condition
https://bugzilla.mindrot.org/show_bug.cgi?id=2300
Bug ID: 2300
Summary: reexec.sh and login-timeout.sh fail due to a race
condition
Product: Portable OpenSSH
Version: 6.7p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: