Permalink
Commits on Oct 5, 2011
  1. Merge remote branch 'trampoline/fix_aliased_table_join_order'

    re-bumped version to snapshot
    Conflicts:
    	project.clj
    bendlas committed Oct 5, 2011
Commits on Sep 30, 2011
Commits on Sep 29, 2011
Commits on Sep 28, 2011
  1. move the sort-joins functions to the internal namespace so i

    can write some tests against them
    mccraigmccraig committed Sep 28, 2011
Commits on Sep 27, 2011
Commits on Sep 24, 2011
Commits on Sep 2, 2011
  1. added supports-get-generated-keys? (wrapper for DatabaseMetaData.supp…

    …ortsGetGeneratedKeys)
    
    added generated-keys, prepare-statement
    fixed tests for derby database
    Andreas Wurzer committed with bendlas Sep 1, 2011
Commits on Aug 25, 2011
  1. Merge pull request #96 from ck/fix-aggregate-with-aliases

    Remove alias from GROUP BY.
    bendlas committed Aug 25, 2011
Commits on Aug 24, 2011
Commits on Aug 15, 2011
Commits on Aug 8, 2011
Commits on Jul 29, 2011
  1. Updated dependencies

    bendlas committed Jul 29, 2011
  2. Only get generated keys when not in batch mode

    Fixes mysql exception with drivers > 5.1.6
    Fixes postgres auto generated keyfetch not being possible in batch mode
    bendlas committed Jul 29, 2011
  3. Make tests leiningen-friendly

    Run integration tests with JVM_OPTS=-Dintegration lein test
    bendlas committed Jul 29, 2011
Commits on Jul 28, 2011
Commits on Jul 21, 2011
  1. clojure 1.3.0 compatibility

    clojure-contrib is deprecated in favor of individual libraries.
    c.c.sql is no longer maintained and has some serious bugs that are being
    addressed in the new org.clojure/java.jdbc (see for instance
    http://dev.clojure.org/jira/browse/JDBC-11)
    clojure 1.3.0 requires the addition of :dynamic metadata. All these issues are
    taken care in the commit. All tests are passing, regular and integration, using both
    clojure 1.2.0 and 1.3.0-beta1. Using clojure 1.3.0 there is a little issue with the
    mocking library used for a couple of tests.
    
    The downside is that projects using clojureql and c.c.sql will need to change
    namespaces to the new clojure.java.jdbc.
    
    Detail:
    
    * No longer depend on clojure-contrib
    ** c.c.sql replaced by org.clojure/java.jdbc
    ** c.c.core replaced by org.clojure/core.incubator
    ** c.c.mock replaced by org.clojure.contrib/mock
    paraseba committed Jul 12, 2011
Commits on Jun 29, 2011
  1. Remove alias from GROUP BY.

    This is more of a kludge right now, since the function has following todo 'We shouldn't call to-fieldlist here, first in the compiler', but I am not sure what exactly Lau has in mind.
    ck committed Jun 29, 2011
Commits on Jun 10, 2011
  1. Added failing test for join ordering

    Join ordering fails when tables are aliased. I added 2 tests, one without
    aliases that passes and one with aliases which fails.
    paraseba committed Jun 10, 2011
Commits on Mar 30, 2011
  1. Added documentation for integration tests

    Explain how integration tests are run
    paraseba committed Mar 30, 2011
  2. Added update! function

    (update! [this pred record])
    
    Updates a record where pred is true. Record
    is a map from strings or keywords (identifying columns)
    to updated values.
    
    Ex. (update! (table :one) (where (= :id 5)) {:age 22})
    paraseba committed Mar 30, 2011
  3. update-in! accepts only one record

    It was accepting multiple maps, but the implementation was broken.
    It doesn't seem to have much sense to pass multiple maps to update.
    paraseba committed Mar 30, 2011
Commits on Mar 27, 2011
  1. Fixed to-orderlist to not qualify artificial columns.

      (-> (table :continents)
          (sort [(str "distance(location, ST_GeomFromText('SRID=4326;POINT(0 0)'))")]))
    
       "SELECT continents.* FROM continents ORDER BY distance(location, ST_GeomFromText('SRID=4326;POINT(0 0)')) ASC"
    r0man committed Mar 27, 2011
Commits on Mar 24, 2011
  1. Added test to verify that a printed sql without quotes does

    execute correctly.
    
    The form:
    
      (select (table :users) (where (= :title "Dev")))
    
    generates
    
      SELECT users.* FROM users WHERE (users.title = Dev)
    
    but should generate
    
      SELECT users.* FROM users WHERE (users.title = Dev)
    
    Running the query does actually work.
    r0man committed Mar 24, 2011
  2. Bugfix for aliased tables. The ClojureQL form:

      (select (table {:users :developers}) (where (= :title "Dev")))
    
    should generate
    
      SELECT developers.* FROM users developers WHERE (developers.title = Dev)
    
    instead of
    
      SELECT developers.* FROM users developers WHERE (users developers.title = Dev)
    r0man committed Mar 24, 2011
Commits on Mar 22, 2011
  1. Fixed bug in declare-tables

    LauJensen committed Mar 22, 2011