PeterHamilton/citier — pull request #60 by HyveAG (2012-07-09 13:32:58+00:00)
Title: added support for JRuby

I've modified citier's sql_adapters.rb file so that it works with JRuby.

It is divided into one section for Ruby and one section for JRuby.

The JRuby section contains three modifications:

- Classes inherit from JdbcAdapter instead of AbstractAdapter
(JdbcAdapter inherits from AbstractAdapter anyway)
- the table_existsB? and views_existsB? method were modified to work
with postgres' JDBC support (in fact, I replaced citier's code with code
from the jdbc postgres adapter and adapted it in the views_existsB?
method)
- viewsL and tablesL were slightly modified to use exec_query instead of
query.