Displaying 5 results from an estimated 5 matches for "adapter_nam".
Did you mean:
adapter_name
2009 Mar 11
1
How to dummy a DB adapter?
...le to handle certain StatementInvalid type AR
exceptions. I wish to catch the case where the db adapter in use is not
supported by the module. I would like to test this situation and have
only a vague idea as to how to proceed.
My exception handling method selects the parsing method based on the
adapter_name value.
def hll_ar_exception(exception)
raise exception unless exception.class.to_s ==
''ActiveRecord::StatementInvalid''
acan = self.connection.adapter_name
case acan
when ''MySQL''
hll_parse_mysql
when '&...
2006 Jul 24
3
how to install busy_handler for SQLite3
I get too often SQLite3::BusyException and after searching a bit I
think I''d need to install a busy_hanlder to return true. That seems
to be per connection, how would you do this in a global way in Rails?
-- fxn
2007 Oct 08
1
How to get database adapter type programmatically in rails?
Hi,all
I am developing a Rails application supporting both Mysql and Oracle.
I have to use Native SQL statements some place. While we know the SQL
grammar is quite different for Mysql and Oracle, so I have to get
database adapter type programmatically in my codes to process
different native SQL statements. I haven''t found any document for this
situation. After some research, I have found
2010 Aug 13
10
:limit text mysql
I have a rails 3.rc app that I''m developing. I have a text entry in one
my models that can sometimes be quite big. I tried setting :limit =>
4294967296 on the text column in my migration file but this doesn''t seem
to have any effect. The column is till created as a TEXT column rather
than MEDIUMTEXT or LONGTEXT.
Does anyone have any idea why this might be happening? Is there
2009 Sep 28
5
Multi-databases support
Hi,
While I was hacking ovirt-server, I have found that it's currently
restricted to Postgres DB. Even if I like postgres for serious work on a
server, I really prefer to hack/dev locally on a Sqlite or MySQL DB.
I have googled on rails in order to find a good answer for the "foreign
key problem" which forces OVirt to stay on pg. I have found a plugin on
this particular