Closed ostronom closed 13 years ago
Please attach the code and a description of the table
CREATE TABLE entry
(
id
int(11) NOT NULL AUTO_INCREMENT,
title
varchar(200) NOT NULL,
slug
varchar(200) NOT NULL,
shortlink
varchar(200) NOT NULL DEFAULT '',
date
datetime NOT NULL,
text
text NOT NULL,
PRIMARY KEY (id
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
Oops.. 'Comment and close' :(
Alright, now we're only missing the clojure code...almost there :)
Everything was fine, when i was using '1.0.0'. :)
(conj! (table :entry) {:title "A" :text "A" :slug "A" :date "2010-11-11"}))
So am I to assume that you're wrapping this is a connection object using with-connection? Can you show me the struct?
And please stop closing the issue
I have this https://gist.github.com/857725, then i do lein repl
and (use 'cljblog.db)
, (in-ns 'cljblog.db)
and (conj! (table :entry) {:title "A" :text "A" :slug "A" :date "2010-11-11"}))
.
Alright, thanks, I'll have a look
I assume you're using the 5.1.7 connector, could you please try with version 5.1.6 ?
Yes, that fixes the problem.
Alright. The good thing is, that it solves your problem. That bad thing is that its out of my hands to fix.
The problem is still here with 5.1.16 connector, and IMO it leads to the bad user experience. I think it'd be reasonable to have "Compatibility with connectors" section (or something like this) on the clojureql.org, and explicitily state there that only 5.1.6 version is supported.
I'm using ClojureQL 1.1.0-SNAPSHOT.
When i'm trying to conj! a record in db, i get: