Guest User

Untitled

a guest
Dec 24th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. module Sequel
  2. module JDBC
  3. class Database
  4. def quote_identifiers_default
  5. false
  6. end
  7. end
  8. module Informix
  9. module DatabaseMethods
  10. # Informix uses the :informix database type.
  11. def database_type
  12. :informix
  13. end
  14. def dataset(opts=nil)
  15. Sequel::JDBC::Informix::Dataset.new(self, opts)
  16. end
  17. end
  18. class Dataset < JDBC::Dataset
  19. def count
  20. select_map{COUNT(:*)}.first.to_i
  21. end
  22. end
  23. end
  24. end
  25. end
Add Comment
Please, Sign In to add comment