rails / arel

A Relational Algebra
2.06k stars 390 forks source link

`NameError: uninitialized constant FakeRecord::Connection::DateTime` with Ruby 2.5.0 #517

Closed yahonda closed 6 years ago

yahonda commented 6 years ago

Steps to reproduce:

$ ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
$ rake

Actual results:

$ rake
/home/yahonda/.rbenv/versions/2.5.0/bin/ruby -w -I"lib:lib:test" -I"/home/yahonda/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib" "/home/yahonda/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/rake_test_loader.rb" "test/attributes/test_attribute.rb" "test/collectors/test_bind.rb" "test/collectors/test_composite.rb" "test/collectors/test_sql_string.rb" "test/collectors/test_substitute_bind_collector.rb" "test/nodes/test_and.rb" "test/nodes/test_as.rb" "test/nodes/test_ascending.rb" "test/nodes/test_bin.rb" "test/nodes/test_binary.rb" "test/nodes/test_bind_param.rb" "test/nodes/test_case.rb" "test/nodes/test_casted.rb" "test/nodes/test_count.rb" "test/nodes/test_delete_statement.rb" "test/nodes/test_descending.rb" "test/nodes/test_distinct.rb" "test/nodes/test_equality.rb" "test/nodes/test_extract.rb" "test/nodes/test_false.rb" "test/nodes/test_grouping.rb" "test/nodes/test_infix_operation.rb" "test/nodes/test_insert_statement.rb" "test/nodes/test_named_function.rb" "test/nodes/test_node.rb" "test/nodes/test_not.rb" "test/nodes/test_or.rb" "test/nodes/test_over.rb" "test/nodes/test_select_core.rb" "test/nodes/test_select_statement.rb" "test/nodes/test_sql_literal.rb" "test/nodes/test_sum.rb" "test/nodes/test_table_alias.rb" "test/nodes/test_true.rb" "test/nodes/test_unary_operation.rb" "test/nodes/test_update_statement.rb" "test/nodes/test_window.rb" "test/test_attributes.rb" "test/test_crud.rb" "test/test_delete_manager.rb" "test/test_factory_methods.rb" "test/test_insert_manager.rb" "test/test_nodes.rb" "test/test_select_manager.rb" "test/test_table.rb" "test/test_update_manager.rb" "test/visitors/test_depth_first.rb" "test/visitors/test_dispatch_contamination.rb" "test/visitors/test_dot.rb" "test/visitors/test_ibm_db.rb" "test/visitors/test_informix.rb" "test/visitors/test_mssql.rb" "test/visitors/test_mysql.rb" "test/visitors/test_oracle.rb" "test/visitors/test_oracle12.rb" "test/visitors/test_postgres.rb" "test/visitors/test_sqlite.rb" "test/visitors/test_to_sql.rb"
Run options: --seed 52438

# Running:

.E..........EEE....................E.EE.EEEEEE.EE...EEE...........EE.........................E...E...........E.E......E........EEE......E....................E...E...............E..EE.E.E.........EE...EEE....E.....EE..E......E..E..E..E..E...EE.EE...EEE.EE..............E..E.....E......................E.E.E.......E.E..........EEEEEEE....E....E.EE.................EEEE.........E.E...E..E.EEEEEE.E..............EE..E....EE...E.E.E../home/yahonda/git/arel/test/visitors/test_to_sql.rb:236: warning: BigDecimal.new is deprecated; use Kernel.BigDecimal method instead.
E.E.E.EEE.EE....E..EE.............E.E.........EE......EE.EEE.....EF..EE..E..E......E............E.E.E...EEEEEE.............................................................................EE..........E..............E......E....................................E.......E..E...E....

Finished in 0.164034s, 4310.0801 runs/s, 4614.8948 assertions/s.

  1) Error:
attribute::#in#test_0004_should generate IN in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:717:in `block (3 levels) in <module:Attributes>'

  2) Error:
the to_sql visitor::Nodes::DoesNotMatch#test_0003_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:531:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:339:in `block (3 levels) in <module:Visitors>'

  3) Error:
the to_sql visitor::Nodes::DoesNotMatch#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:531:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:324:in `block (3 levels) in <module:Visitors>'

  4) Error:
the to_sql visitor::Nodes::DoesNotMatch#test_0002_can handle ESCAPE:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:531:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:331:in `block (3 levels) in <module:Visitors>'

  5) Error:
sql literal::grouped "and" equality#test_0001_makes a grouping node with an and node:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/nodes/test_sql_literal.rb:13:in `compile'
    /home/yahonda/git/arel/test/nodes/test_sql_literal.rb:62:in `block (3 levels) in <module:Nodes>'

  6) Error:
the postgres visitor#test_0004_encloses LATERAL queries in parens:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:83:in `grouping_parentheses'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:76:in `visit_Arel_Nodes_Lateral'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:56:in `block (2 levels) in <module:Visitors>'

  7) Error:
the postgres visitor#test_0001_should escape LIMIT:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:404:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:231:in `visit_Arel_Nodes_SelectOptions'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:225:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:37:in `block (2 levels) in <module:Visitors>'

  8) Error:
the postgres visitor#test_0005_produces LATERAL queries with alias:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:481:in `visit_Arel_Nodes_TableAlias'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:86:in `grouping_parentheses'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:76:in `visit_Arel_Nodes_Lateral'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:63:in `block (2 levels) in <module:Visitors>'

  9) Error:
the postgres visitor::Nodes::Matches#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:73:in `block (3 levels) in <module:Visitors>'

 10) Error:
the postgres visitor::Nodes::Matches#test_0003_can handle ESCAPE:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:88:in `block (3 levels) in <module:Visitors>'

 11) Error:
the postgres visitor::Nodes::Matches#test_0002_should know how to visit case sensitive:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:81:in `block (3 levels) in <module:Visitors>'

 12) Error:
the postgres visitor::Nodes::Matches#test_0004_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:96:in `block (3 levels) in <module:Visitors>'

 13) Error:
select manager::except#test_0001_should except two managers:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:489:in `visit_Arel_Nodes_Between'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:826:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:311:in `visit_Arel_Nodes_Except'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:317:in `block (3 levels) in <module:Arel>'

 14) Error:
attribute::#gteq#test_0002_should generate >= in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:495:in `visit_Arel_Nodes_GreaterThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:145:in `block (3 levels) in <module:Attributes>'

 15) Error:
attribute::#gteq#test_0003_should accept various data types.:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:495:in `visit_Arel_Nodes_GreaterThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:154:in `block (3 levels) in <module:Attributes>'

 16) Error:
the to_sql visitor::TableAlias#test_0001_should use the underlying table for checking columns:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:555:in `block (3 levels) in <module:Visitors>'

 17) Error:
select manager::union#test_0002_should union all:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:826:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:301:in `visit_Arel_Nodes_UnionAll'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:265:in `block (3 levels) in <module:Arel>'

 18) Error:
select manager::union#test_0001_should union two managers:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:826:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:296:in `visit_Arel_Nodes_Union'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:257:in `block (3 levels) in <module:Arel>'

 19) Error:
delete manager#test_0001_handles limit properly:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:404:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:83:in `visit_Arel_Nodes_DeleteStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_delete_manager.rb:17:in `block (2 levels) in <module:Arel>'

 20) Error:
Arel::Table::having#test_0001_adds a having clause:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:254:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_table.rb:61:in `block (3 levels) in <module:Arel>'

 21) Error:
attribute::#not_in_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:629:in `visit_Arel_Nodes_NotIn'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:895:in `block (3 levels) in <module:Attributes>'

 22) Error:
attribute::#lteq_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:507:in `visit_Arel_Nodes_LessThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:290:in `block (3 levels) in <module:Attributes>'

 23) Error:
select manager::take#test_0001_knows take:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:1128:in `block (3 levels) in <module:Arel>'

 24) Error:
attribute::#eq_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:428:in `block (3 levels) in <module:Attributes>'

 25) Error:
attribute::#lteq_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:507:in `visit_Arel_Nodes_LessThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:306:in `block (3 levels) in <module:Attributes>'

 26) Error:
the to_sql visitor::Nodes::Matches#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:519:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:300:in `block (3 levels) in <module:Visitors>'

 27) Error:
the to_sql visitor::Nodes::Matches#test_0002_can handle ESCAPE:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:519:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:307:in `block (3 levels) in <module:Visitors>'

 28) Error:
the to_sql visitor::Nodes::Matches#test_0003_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:519:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:315:in `block (3 levels) in <module:Visitors>'

 29) Error:
the mysql visitor#test_0003_should escape LIMIT:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:404:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/mysql.rb:73:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_mysql.rb:12:in `compile'
    /home/yahonda/git/arel/test/visitors/test_mysql.rb:39:in `block (2 levels) in <module:Visitors>'

 30) Error:
sql literal::equality#test_0001_makes an equality node:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/nodes/test_sql_literal.rb:13:in `compile'
    /home/yahonda/git/arel/test/nodes/test_sql_literal.rb:38:in `block (3 levels) in <module:Nodes>'

 31) Error:
attribute::#does_not_match_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:531:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:540:in `block (3 levels) in <module:Attributes>'

 32) Error:
attribute::#not_eq#test_0002_should generate != in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:679:in `visit_Arel_Nodes_NotEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:18:in `block (3 levels) in <module:Attributes>'

 33) Error:
type casting#test_0001_does not type cast by default:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:982:in `block (2 levels) in <module:Attributes>'

 34) Error:
type casting#test_0002_type casts when given an explicit caster:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:747:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:998:in `block (2 levels) in <module:Attributes>'

 35) Error:
attribute::#lteq#test_0003_should accept various data types.:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:507:in `visit_Arel_Nodes_LessThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:272:in `block (3 levels) in <module:Attributes>'

 36) Error:
attribute::#lteq#test_0002_should generate <= in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:507:in `visit_Arel_Nodes_LessThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:263:in `block (3 levels) in <module:Attributes>'

 37) Error:
attribute::#not_in_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:629:in `visit_Arel_Nodes_NotIn'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:911:in `block (3 levels) in <module:Attributes>'

 38) Error:
attribute::#not_eq_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:679:in `visit_Arel_Nodes_NotEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:43:in `block (3 levels) in <module:Attributes>'

 39) Error:
the postgres visitor::Nodes::NotRegexp#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:41:in `visit_Arel_Nodes_NotRegexp'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:169:in `block (3 levels) in <module:Visitors>'

 40) Error:
the postgres visitor::Nodes::NotRegexp#test_0002_can handle case insensitive:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:41:in `visit_Arel_Nodes_NotRegexp'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:177:in `block (3 levels) in <module:Visitors>'

 41) Error:
the postgres visitor::Nodes::NotRegexp#test_0003_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:41:in `visit_Arel_Nodes_NotRegexp'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:185:in `block (3 levels) in <module:Visitors>'

 42) Error:
sql literal::grouped "or" equality#test_0001_makes a grouping node with an or node:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/nodes/test_sql_literal.rb:13:in `compile'
    /home/yahonda/git/arel/test/nodes/test_sql_literal.rb:55:in `block (3 levels) in <module:Nodes>'

 43) Error:
select manager::with#test_0002_should support WITH RECURSIVE:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:826:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:296:in `visit_Arel_Nodes_Union'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:686:in `visit_Arel_Nodes_As'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:291:in `visit_Arel_Nodes_WithRecursive'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:208:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:361:in `block (3 levels) in <module:Arel>'

 44) Error:
select manager::with#test_0001_should support basic WITH:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:501:in `visit_Arel_Nodes_GreaterThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:427:in `visit_Arel_SelectManager'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:686:in `visit_Arel_Nodes_As'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:286:in `visit_Arel_Nodes_With'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:208:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:335:in `block (3 levels) in <module:Arel>'

 45) Error:
attribute::#does_not_match#test_0002_should generate NOT LIKE in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:531:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:524:in `block (3 levels) in <module:Attributes>'

 46) Error:
attribute::#eq_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:927:in `block (3 levels) in <module:Attributes>'

 47) Error:
attribute::#matches_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:519:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:508:in `block (3 levels) in <module:Attributes>'

 48) Error:
attribute::#eq#test_0002_should generate = in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:403:in `block (3 levels) in <module:Attributes>'

 49) Error:
attribute::#gt_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:501:in `visit_Arel_Nodes_GreaterThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:129:in `block (3 levels) in <module:Attributes>'

 50) Error:
attribute::#not_in#test_0005_should generate NOT IN in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:629:in `visit_Arel_Nodes_NotIn'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:879:in `block (3 levels) in <module:Attributes>'

 51) Error:
select manager::update#test_0006_copies where clauses when nesting is triggered:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:653:in `visit_Arel_Nodes_Assignment'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:109:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:1074:in `block (3 levels) in <module:Arel>'

 52) Error:
select manager::update#test_0003_copies limits:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:404:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:231:in `visit_Arel_Nodes_SelectOptions'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:225:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:114:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:1034:in `block (3 levels) in <module:Arel>'

 53) Error:
select manager::update#test_0001_creates an update statement:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:653:in `visit_Arel_Nodes_Assignment'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:109:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:1012:in `block (3 levels) in <module:Arel>'

 54) Error:
select manager::update#test_0005_copies where clauses:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:653:in `visit_Arel_Nodes_Assignment'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:109:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:1061:in `block (3 levels) in <module:Arel>'

 55) Error:
the to_sql visitor::Nodes::In#test_0006_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:402:in `block (3 levels) in <module:Visitors>'

 56) Error:
the to_sql visitor::Nodes::In#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:357:in `block (3 levels) in <module:Visitors>'

 57) Error:
the to_sql visitor::Nodes::In#test_0003_can handle two dot ranges:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:489:in `visit_Arel_Nodes_Between'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:369:in `block (3 levels) in <module:Visitors>'

 58) Error:
the to_sql visitor::Nodes::In#test_0004_can handle three dot ranges:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:495:in `visit_Arel_Nodes_GreaterThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:376:in `block (3 levels) in <module:Visitors>'

 59) Error:
the to_sql visitor::Nodes::In#test_0005_can handle ranges bounded by infinity:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:495:in `visit_Arel_Nodes_GreaterThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:383:in `block (3 levels) in <module:Visitors>'

 60) Error:
attribute::#lt_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:247:in `block (3 levels) in <module:Attributes>'

 61) Error:
Arel::Nodes::Count::eq#test_0001_should compare the count:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/nodes/test_count.rb:17:in `block (3 levels) in <top (required)>'

 62) Error:
delete manager::where#test_0001_uses where values:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:80:in `visit_Arel_Nodes_DeleteStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_delete_manager.rb:41:in `block (3 levels) in <module:Arel>'

 63) Error:
attribute::#matches#test_0002_should generate LIKE in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:519:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:476:in `block (3 levels) in <module:Attributes>'

 64) Error:
attribute::#gteq_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:495:in `visit_Arel_Nodes_GreaterThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:188:in `block (3 levels) in <module:Attributes>'

 65) Error:
attribute::#does_not_match_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:531:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:556:in `block (3 levels) in <module:Attributes>'

 66) Error:
update manager::set#test_0001_updates with null:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:653:in `visit_Arel_Nodes_Assignment'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:109:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_update_manager.rb:36:in `block (3 levels) in <module:Arel>'

 67) Error:
update manager::set#test_0003_takes a list of lists:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:653:in `visit_Arel_Nodes_Assignment'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:109:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_update_manager.rb:52:in `block (3 levels) in <module:Arel>'

 68) Error:
the mysql visitor::concat#test_0002_concats a string:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/mysql.rb:80:in `visit_Arel_Nodes_Concat'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_mysql.rb:12:in `compile'
    /home/yahonda/git/arel/test/visitors/test_mysql.rb:72:in `block (3 levels) in <module:Visitors>'

 69) Error:
the to_sql visitor::Nodes::Case#test_0001_supports simple case expressions:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:708:in `visit_Arel_Nodes_When'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:696:in `block in visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:598:in `block (3 levels) in <module:Visitors>'

 70) Error:
the to_sql visitor::Nodes::Case#test_0005_supports #when with two arguments and no #then:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:708:in `visit_Arel_Nodes_When'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:696:in `block in visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:638:in `block (3 levels) in <module:Visitors>'

 71) Error:
the to_sql visitor::Nodes::Case#test_0006_can be chained as a predicate:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:708:in `visit_Arel_Nodes_When'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:696:in `block in visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:646:in `block (3 levels) in <module:Visitors>'

 72) Error:
the to_sql visitor::Nodes::Case#test_0002_supports extended case expressions:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:708:in `visit_Arel_Nodes_When'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:696:in `block in visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:608:in `block (3 levels) in <module:Visitors>'

 73) Error:
the to_sql visitor::Nodes::Case#test_0004_allows chaining multiple conditions:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:708:in `visit_Arel_Nodes_When'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:696:in `block in visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:628:in `block (3 levels) in <module:Visitors>'

 74) Error:
the to_sql visitor::Nodes::Case#test_0003_works without default branch:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:708:in `visit_Arel_Nodes_When'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:696:in `block in visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:695:in `visit_Arel_Nodes_Case'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:617:in `block (3 levels) in <module:Visitors>'

 75) Error:
attribute::#not_eq_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:679:in `visit_Arel_Nodes_NotEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:59:in `block (3 levels) in <module:Attributes>'

 76) Error:
the to_sql visitor::Nodes::NotEqual#test_0001_should handle false:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:679:in `visit_Arel_Nodes_NotEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:146:in `block (3 levels) in <module:Visitors>'

 77) Error:
Grouping#test_0001_should create Equality nodes:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:660:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/nodes/test_grouping.rb:9:in `block (2 levels) in <module:Nodes>'

 78) Error:
select manager::delete#test_0002_copies where:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:80:in `visit_Arel_Nodes_DeleteStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:960:in `block (3 levels) in <module:Arel>'

 79) Error:
the postgres visitor::Nodes::DoesNotMatch#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:25:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:107:in `block (3 levels) in <module:Visitors>'

 80) Error:
the postgres visitor::Nodes::DoesNotMatch#test_0004_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:25:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:130:in `block (3 levels) in <module:Visitors>'

 81) Error:
the postgres visitor::Nodes::DoesNotMatch#test_0002_should know how to visit case sensitive:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:25:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:115:in `block (3 levels) in <module:Visitors>'

 82) Error:
the postgres visitor::Nodes::DoesNotMatch#test_0003_can handle ESCAPE:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:25:in `visit_Arel_Nodes_DoesNotMatch'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:122:in `block (3 levels) in <module:Visitors>'

 83) Error:
attribute::#gt_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:501:in `visit_Arel_Nodes_GreaterThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:113:in `block (3 levels) in <module:Attributes>'

 84) Error:
attribute::#in_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:733:in `block (3 levels) in <module:Attributes>'

 85) Error:
Arel::Table::where#test_0001_returns a tree manager:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_table.rb:170:in `block (3 levels) in <module:Arel>'

 86) Error:
the to_sql visitor::Nodes::NotIn#test_0006_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:629:in `visit_Arel_Nodes_NotIn'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:530:in `block (3 levels) in <module:Visitors>'

 87) Error:
the to_sql visitor::Nodes::NotIn#test_0005_can handle ranges bounded by infinity:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:511:in `block (3 levels) in <module:Visitors>'

 88) Error:
the to_sql visitor::Nodes::NotIn#test_0004_can handle three dot ranges:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:504:in `block (3 levels) in <module:Visitors>'

 89) Error:
the to_sql visitor::Nodes::NotIn#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:629:in `visit_Arel_Nodes_NotIn'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:485:in `block (3 levels) in <module:Visitors>'

 90) Error:
the to_sql visitor::Nodes::NotIn#test_0003_can handle two dot ranges:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:497:in `block (3 levels) in <module:Visitors>'

 91) Error:
select manager::where_sql#test_0002_joins wheres with AND:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:15:in `block in visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:14:in `map'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:14:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/select_manager.rb:182:in `where_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:981:in `block (3 levels) in <module:Arel>'

 92) Error:
select manager::where_sql#test_0003_handles database specific statements:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:15:in `block in visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:14:in `map'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:14:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/select_manager.rb:182:in `where_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:992:in `block (3 levels) in <module:Arel>'

 93) Error:
select manager::where_sql#test_0001_gives me back the where sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:15:in `block in visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:14:in `map'
    /home/yahonda/git/arel/lib/arel/visitors/where_sql.rb:14:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/select_manager.rb:182:in `where_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:972:in `block (3 levels) in <module:Arel>'

 94) Error:
the to_sql visitor#test_0017_should visit_Float:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:202:in `block (2 levels) in <module:Visitors>'

 95) Error:
the to_sql visitor#test_0026_should visit_NilClass:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:249:in `block (2 levels) in <module:Visitors>'

 96) Error:
the to_sql visitor#test_0016_should visit_DateTime:
NameError: uninitialized constant Arel::Visitors::DateTime
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:192:in `block (2 levels) in <module:Visitors>'

 97) Error:
the to_sql visitor#test_0019_should apply Not to the whole expression:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:602:in `visit_Arel_Nodes_Not'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:213:in `block (2 levels) in <module:Visitors>'

 98) Error:
the to_sql visitor#test_0015_should quote LIMIT without column type coercion:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:188:in `block (2 levels) in <module:Visitors>'

 99) Error:
the to_sql visitor#test_0025_should visit_Date:
NameError: uninitialized constant Arel::Visitors::Date
Did you mean?  Data
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:240:in `block (2 levels) in <module:Visitors>'

100) Error:
the to_sql visitor#test_0013_should escape LIMIT:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:404:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:231:in `visit_Arel_Nodes_SelectOptions'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:225:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:175:in `block (2 levels) in <module:Visitors>'

101) Error:
the to_sql visitor#test_0006_should chain predications on named functions:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:61:in `block (2 levels) in <module:Visitors>'

102) Error:
the to_sql visitor#test_0024_should visit_BigDecimal:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:236:in `block (2 levels) in <module:Visitors>'

103) Error:
the to_sql visitor#test_0023_should visit_Set:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:232:in `block (2 levels) in <module:Visitors>'

104) Error:
the to_sql visitor#test_0012_should visit_Class:
NameError: uninitialized constant Arel::Visitors::DateTime
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:169:in `block (2 levels) in <module:Visitors>'

105) Error:
the to_sql visitor#test_0033_should visit_TrueClass:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:294:in `block (2 levels) in <module:Visitors>'

106) Error:
the to_sql visitor#test_0029_should visit_Arel_Nodes_And:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:264:in `block (2 levels) in <module:Visitors>'

107) Error:
the to_sql visitor#test_0011_should visit string subclass:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:679:in `visit_Arel_Nodes_NotEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:163:in `block (3 levels) in <module:Visitors>'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:161:in `each'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:161:in `block (2 levels) in <module:Visitors>'

108) Error:
the to_sql visitor#test_0030_should visit_Arel_Nodes_Or:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:271:in `block (2 levels) in <module:Visitors>'

109) Error:
the to_sql visitor#test_0022_should visit_Hash:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:228:in `block (2 levels) in <module:Visitors>'

110) Error:
the to_sql visitor::Nodes::Grouping#test_0001_wraps nested groupings in brackets only once:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:418:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:138:in `block (3 levels) in <module:Visitors>'

111) Error:
attribute::#lt#test_0002_should generate < in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:204:in `block (3 levels) in <module:Attributes>'

112) Error:
attribute::#lt#test_0003_should accept various data types.:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:213:in `block (3 levels) in <module:Attributes>'

113) Error:
equality::backwards compat::to_sql#test_0001_takes an engine:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/test/nodes/test_equality.rb:38:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/nodes/test_equality.rb:46:in `block (4 levels) in <module:Nodes>'

114) Error:
the informix visitor#test_0002_uses FIRST n in updates with a limit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/informix.rb:49:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/informix.rb:9:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:114:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_informix.rb:12:in `compile'
    /home/yahonda/git/arel/test/visitors/test_informix.rb:28:in `block (2 levels) in <module:Visitors>'

115) Error:
attribute::#lt_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:513:in `visit_Arel_Nodes_LessThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:231:in `block (3 levels) in <module:Attributes>'

116) Error:
attribute::#matches_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:14:in `visit_Arel_Nodes_Matches'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:492:in `block (3 levels) in <module:Attributes>'

117) Error:
the to_sql visitor::Nodes::Equality#test_0001_should escape strings:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:118:in `block (3 levels) in <module:Visitors>'

118) Error:
the to_sql visitor::Nodes::Equality#test_0002_should handle false:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:660:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:16:in `compile'
    /home/yahonda/git/arel/test/visitors/test_to_sql.rb:126:in `block (3 levels) in <module:Visitors>'

119) Error:
the postgres visitor::Nodes::Regexp#test_0001_should know how to visit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:36:in `visit_Arel_Nodes_Regexp'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:141:in `block (3 levels) in <module:Visitors>'

120) Error:
the postgres visitor::Nodes::Regexp#test_0003_can handle subqueries:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:36:in `visit_Arel_Nodes_Regexp'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:158:in `block (3 levels) in <module:Visitors>'

121) Error:
the postgres visitor::Nodes::Regexp#test_0002_can handle case insensitive:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:828:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/postgresql.rb:36:in `visit_Arel_Nodes_Regexp'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:14:in `compile'
    /home/yahonda/git/arel/test/visitors/test_postgres.rb:150:in `block (3 levels) in <module:Visitors>'

122) Error:
update manager#test_0002_handles limit properly:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:653:in `visit_Arel_Nodes_Assignment'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:109:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_update_manager.rb:27:in `block (2 levels) in <module:Arel>'

123) Failure:
update manager#test_0001_should not quote sql literals [/home/yahonda/git/arel/test/test_update_manager.rb:17]:
--- expected
+++ actual
@@ -1 +1 @@
-"UPDATE \"users\" SET \"name\" = ?"
+"UPDATE \"users\" SET \"name\" = $1"

124) Error:
attribute::#gt#test_0004_should accept various data types.:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:501:in `visit_Arel_Nodes_GreaterThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:95:in `block (3 levels) in <module:Attributes>'

125) Error:
attribute::#gt#test_0002_should generate > in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:501:in `visit_Arel_Nodes_GreaterThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:75:in `block (3 levels) in <module:Attributes>'

126) Error:
insert manager::combo#test_0001_combines columns and values list in order:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:215:in `block (3 levels) in <module:Arel>'

127) Error:
the ibm_db visitor#test_0002_uses FETCH FIRST n ROWS in updates with a limit:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/ibm_db.rb:9:in `visit_Arel_Nodes_Limit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:231:in `visit_Arel_Nodes_SelectOptions'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:225:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:114:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/test/visitors/test_ibm_db.rb:12:in `compile'
    /home/yahonda/git/arel/test/visitors/test_ibm_db.rb:28:in `block (2 levels) in <module:Visitors>'

128) Error:
select manager#test_join_sources:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:560:in `visit_Arel_Nodes_StringJoin'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:546:in `visit_Arel_Nodes_JoinSource'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:247:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:10:in `test_join_sources'

129) Error:
attribute::#gteq_any#test_0002_should generate ORs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:495:in `visit_Arel_Nodes_GreaterThanOrEqual'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:639:in `visit_Arel_Nodes_Or'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:172:in `block (3 levels) in <module:Attributes>'

130) Error:
insert manager::insert#test_0005_works with multiple single values:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:177:in `block (2 levels) in visit_Arel_Nodes_ValuesList'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:172:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:172:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:172:in `block in visit_Arel_Nodes_ValuesList'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:169:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:169:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:169:in `visit_Arel_Nodes_ValuesList'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:80:in `block (3 levels) in <module:Arel>'

131) Error:
insert manager::insert#test_0003_works with multiple values:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:177:in `block (2 levels) in visit_Arel_Nodes_ValuesList'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:172:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:172:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:172:in `block in visit_Arel_Nodes_ValuesList'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:169:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:169:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:169:in `visit_Arel_Nodes_ValuesList'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:45:in `block (3 levels) in <module:Arel>'

132) Error:
insert manager::insert#test_0008_inserts time:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:112:in `block (3 levels) in <module:Arel>'

133) Error:
insert manager::insert#test_0006_inserts false:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:90:in `block (3 levels) in <module:Arel>'

134) Error:
insert manager::insert#test_0009_takes a list of lists:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:122:in `block (3 levels) in <module:Arel>'

135) Error:
insert manager::insert#test_0011_noop for empty list:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:141:in `block (3 levels) in <module:Arel>'

136) Error:
insert manager::insert#test_0007_inserts null:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:99:in `block (3 levels) in <module:Arel>'

137) Error:
insert manager::insert#test_0010_defaults the table:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:131:in `block (3 levels) in <module:Arel>'

138) Error:
attribute::#in_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:789:in `visit_Array'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:619:in `visit_Arel_Nodes_In'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:749:in `block (3 levels) in <module:Attributes>'

139) Error:
attribute::#eq_all#test_0002_should generate ANDs in sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:820:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:635:in `visit_Arel_Nodes_And'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:421:in `visit_Arel_Nodes_Grouping'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:452:in `block (3 levels) in <module:Attributes>'

140) Error:
select manager::where#test_0001_knows where:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:1157:in `block (3 levels) in <module:Arel>'

141) Error:
insert manager::values#test_0001_converts to sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:196:in `block in visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:191:in `visit_Arel_Nodes_Values'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:811:in `maybe_visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:130:in `visit_Arel_Nodes_InsertStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_insert_manager.rb:189:in `block (3 levels) in <module:Arel>'

142) Error:
select manager::intersect#test_0001_should interect two managers:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:501:in `visit_Arel_Nodes_GreaterThan'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:266:in `block in collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:265:in `collect_nodes_for'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:250:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:826:in `infix_value'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:306:in `visit_Arel_Nodes_Intersect'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:292:in `block (3 levels) in <module:Arel>'

143) Error:
equality::#to_sql#test_0001_should produce sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/nodes/node.rb:47:in `to_sql'
    /home/yahonda/git/arel/test/attributes/test_attribute.rb:971:in `block (3 levels) in <module:Attributes>'

144) Error:
select manager::joins#test_0003_can have a non-table alias as relation name:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:597:in `visit_Arel_Nodes_On'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:589:in `visit_Arel_Nodes_InnerJoin'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:546:in `visit_Arel_Nodes_JoinSource'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:247:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:681:in `block (3 levels) in <module:Arel>'

145) Error:
select manager::joins#test_0005_returns string join sql:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:154:in `visit_Arel_Nodes_Quoted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:560:in `visit_Arel_Nodes_StringJoin'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:546:in `visit_Arel_Nodes_JoinSource'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:247:in `visit_Arel_Nodes_SelectCore'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:213:in `block in visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:212:in `visit_Arel_Nodes_SelectStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_select_manager.rb:705:in `block (3 levels) in <module:Arel>'

146) Error:
update manager::where#test_0001_generates a where clause:
NameError: uninitialized constant FakeRecord::Connection::DateTime
    /home/yahonda/git/arel/test/support/fake_record.rb:65:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:795:in `quote'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:749:in `quoted'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:150:in `visit_Arel_Nodes_Casted'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:666:in `visit_Arel_Nodes_Equality'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:818:in `block in inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each_with_index'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `each'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:816:in `inject_join'
    /home/yahonda/git/arel/lib/arel/visitors/to_sql.rb:114:in `visit_Arel_Nodes_UpdateStatement'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:29:in `visit'
    /home/yahonda/git/arel/lib/arel/visitors/visitor.rb:10:in `accept'
    /home/yahonda/git/arel/lib/arel/tree_manager.rb:20:in `to_sql'
    /home/yahonda/git/arel/test/test_update_manager.rb:96:in `block (3 levels) in <module:Arel>'

707 runs, 757 assertions, 1 failures, 145 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w -I"lib:lib:test" -I"/home/yahonda/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib" "/home/yahonda/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/rake_test_loader.rb" "test/attributes/test_attribute.rb" "test/collectors/test_bind.rb" "test/collectors/test_composite.rb" "test/collectors/test_sql_string.rb" "test/collectors/test_substitute_bind_collector.rb" "test/nodes/test_and.rb" "test/nodes/test_as.rb" "test/nodes/test_ascending.rb" "test/nodes/test_bin.rb" "test/nodes/test_binary.rb" "test/nodes/test_bind_param.rb" "test/nodes/test_case.rb" "test/nodes/test_casted.rb" "test/nodes/test_count.rb" "test/nodes/test_delete_statement.rb" "test/nodes/test_descending.rb" "test/nodes/test_distinct.rb" "test/nodes/test_equality.rb" "test/nodes/test_extract.rb" "test/nodes/test_false.rb" "test/nodes/test_grouping.rb" "test/nodes/test_infix_operation.rb" "test/nodes/test_insert_statement.rb" "test/nodes/test_named_function.rb" "test/nodes/test_node.rb" "test/nodes/test_not.rb" "test/nodes/test_or.rb" "test/nodes/test_over.rb" "test/nodes/test_select_core.rb" "test/nodes/test_select_statement.rb" "test/nodes/test_sql_literal.rb" "test/nodes/test_sum.rb" "test/nodes/test_table_alias.rb" "test/nodes/test_true.rb" "test/nodes/test_unary_operation.rb" "test/nodes/test_update_statement.rb" "test/nodes/test_window.rb" "test/test_attributes.rb" "test/test_crud.rb" "test/test_delete_manager.rb" "test/test_factory_methods.rb" "test/test_insert_manager.rb" "test/test_nodes.rb" "test/test_select_manager.rb" "test/test_table.rb" "test/test_update_manager.rb" "test/visitors/test_depth_first.rb" "test/visitors/test_dispatch_contamination.rb" "test/visitors/test_dot.rb" "test/visitors/test_ibm_db.rb" "test/visitors/test_informix.rb" "test/visitors/test_mssql.rb" "test/visitors/test_mysql.rb" "test/visitors/test_oracle.rb" "test/visitors/test_oracle12.rb" "test/visitors/test_postgres.rb" "test/visitors/test_sqlite.rb" "test/visitors/test_to_sql.rb" ]

Tasks: TOP => default => test
(See full trace by running task with --trace)
$
yahonda commented 6 years ago

Not 100% sure but I recall Ruby 2.5 removes top level constant lookup. https://bugs.ruby-lang.org/issues/11547

yahonda commented 6 years ago

Closed since #516 includes this commit https://github.com/rails/arel/pull/516/commits/f4477d631f19e7a9e09f77062a0992121d0bca16