From fd10b5a11524b5c1215d8905149ac8403ce82ed1 Mon Sep 17 00:00:00 2001 From: Ruiyun Date: Thu, 13 Dec 2012 12:48:37 +0800 Subject: [PATCH] disj! support table name with hyphen. --- project.clj | 2 +- src/clojureql/core.clj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index 58c0b93..5ba330d 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject ruiyun/clojureql "1.0.4a" +(defproject ruiyun/clojureql "1.0.4c" :description "Superior SQL integration for Clojure" :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/core.incubator "0.1.1"] diff --git a/src/clojureql/core.clj b/src/clojureql/core.clj index 36303ea..273e48b 100644 --- a/src/clojureql/core.clj +++ b/src/clojureql/core.clj @@ -329,8 +329,8 @@ (with-meta this (meta return)))) (disj! [this predicate] - (with-cnx cnx - (delete-rows tname (into [(str predicate)] (:env predicate)))) + (with-cnx cnx + (delete-rows (nskeyword tname) (into [(str predicate)] (:env predicate)))) this) (update-in! [this pred record]