fukamachi / mito

An ORM for Common Lisp with migrations, relationships and PostgreSQL support
284 stars 31 forks source link

(mito:find-dao can't find column like dict_name_cn #114

Open bliugithub opened 2 years ago

bliugithub commented 2 years ago

[ ] DICT_NAME_CN = #

bliugithub commented 2 years ago

WX20220826-113317

bliugithub commented 2 years ago

but (mito:save-dao dict can run right

bliugithub commented 2 years ago

use accessor to work fine.

(mito:deftable comm_dict () ((dict-type :col-type (:varchar 64) :accessor dict_type) (dict_name_cn :col-type (:varchar 64)) (dict_value :col-type (:varchar 64)) (dict_name_en :col-type (or (:varchar 128) :null))) (:record-timestamps nil))

vindarel commented 2 years ago

use accessor to work fine.

if so then it looks like a similar issue as one or two already open and I would close this as duplicated. Glad it works.

Still, can you post a full stacktrace showing the issue? The screenshot doesn't help, not your first comment [ ] DICT_NAME_CN = #.