Skip to content
Commits on Sep 2, 2011
  1. @bendlas

    added supports-get-generated-keys? (wrapper for DatabaseMetaData.supp…

    Andreas Wurzer committed with bendlas
    …ortsGetGeneratedKeys)
    
    added generated-keys, prepare-statement
    fixed tests for derby database
  2. @bendlas
  3. @bendlas
  4. @bendlas
  5. @bendlas
Commits on Aug 25, 2011
  1. @bendlas

    Merge pull request #96 from ck/fix-aggregate-with-aliases

    bendlas committed
    Remove alias from GROUP BY.
Commits on Aug 24, 2011
  1. @lynaghk
Commits on Aug 15, 2011
  1. @bendlas
Commits on Aug 8, 2011
  1. @lynaghk
Commits on Jul 29, 2011
  1. @bendlas

    Updated dependencies

    bendlas committed
  2. @bendlas

    Only get generated keys when not in batch mode

    bendlas committed
    Fixes mysql exception with drivers > 5.1.6
    Fixes postgres auto generated keyfetch not being possible in batch mode
  3. @bendlas
  4. @bendlas

    Make tests leiningen-friendly

    bendlas committed
    Run integration tests with JVM_OPTS=-Dintegration lein test
Commits on Jul 28, 2011
  1. @bendlas
Commits on Jul 21, 2011
  1. @bendlas
  2. @paraseba
  3. @paraseba

    clojure 1.3.0 compatibility

    paraseba committed
    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
Commits on Jun 29, 2011
  1. @ck

    Remove alias from GROUP BY.

    ck committed
    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.
Commits on Mar 30, 2011
  1. @paraseba

    Added documentation for integration tests

    paraseba committed
    Explain how integration tests are run
  2. @paraseba

    Added update! function

    paraseba committed
    (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})
  3. @paraseba

    update-in! accepts only one record

    paraseba committed
    It was accepting multiple maps, but the implementation was broken.
    It doesn't seem to have much sense to pass multiple maps to update.
Commits on Mar 27, 2011
  1. @r0man

    Fixed to-orderlist to not qualify artificial columns.

    r0man committed
      (-> (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"
Commits on Mar 24, 2011
  1. @LauJensen
  2. @r0man

    Added test to verify that a printed sql without quotes does

    r0man committed
    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.
  3. @r0man

    Bugfix for aliased tables. The ClojureQL form:

    r0man committed
      (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)
Commits on Mar 22, 2011
  1. @LauJensen

    Fixed bug in declare-tables

    LauJensen committed
Commits on Mar 17, 2011
  1. @clizzin
Commits on Mar 8, 2011
  1. @l0st3d

    fixed joins not carrying info through to other joins

    l0st3d committed
    joins should be sorted by dependency on previously joined tables
    
    e.g. this
    
    SELECT * FROM t1
    JOIN t3 ON (t3.c = t2.c)
    JOIN t2 ON (t1.a = t2.a)
    
    is not valid, since t3 cannot be joined to anything on t1, without t2.  Should be
    
    SELECT * FROM t1
    JOIN t2 ON (t1.a = t2.a)
    JOIN t3 ON (t3.c = t2.c)
  2. @doooks @l0st3d
Commits on Mar 3, 2011
  1. @ninjudd

    add transform method for modifying results on deref. implement pick u…

    ninjudd committed with ninjudd
    …sing it. add tests for all of this.
Commits on Feb 27, 2011
  1. @LauJensen
Commits on Feb 24, 2011
  1. @LauJensen

    Fixed issue where the order of the environment components was reverse…

    LauJensen committed
    …d for joins
    
    Closes issue 70
Commits on Feb 11, 2011
  1. @clizzin
Commits on Jan 27, 2011
  1. @LauJensen

    Fixed the compilation for aliased tables so that their names dont get…

    LauJensen committed
    … subselected
    
    (table {:a :b})
Commits on Jan 25, 2011
  1. @clizzin

    Added support for select-if.

    clizzin committed
Something went wrong with that request. Please try again.