search for: sqliteadapt

Displaying 2 results from an estimated 2 matches for "sqliteadapt".

Did you mean: sqliteadapter
2009 Mar 11
1
How to dummy a DB adapter?
...n ''PostgreSQL'' hll_parse_postgresql when ''SQLite'' hll_parse_sqlite(exception) else Rails::logger.warn("Adapter #{acan} not supported by hll_ar_exception.") raise exception end end I am thinking about simply opening SQLiteAdapter and overriding the adapter_name method to some arbitrary value for the test. However, it occurs to me that there are probably better ways to do what I am trying to accomplish so I welcome any suggestions on how to proceed. -- Posted via http://www.ruby-forum.com/.
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login suport in Depot (the example in the RoR book) and LoginController#add_user throws ActiveRecord::StatementInvalid in an innocent /login/add_user GET request. The trace goes down to a call to SQLiteAdapter#table_structure, and the source code suggests what''s happening is that "PRAGMA table_structure(#{table_name})" is returning empty metadata for some reason: def table_structure(table_name) returning structure = execute("PRAGMA table_info(# {table_name})&...