artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Artanis] "Invalid keyword" Error when Trying to `create-table`


From: Jonathan Schmeling
Subject: [Artanis] "Invalid keyword" Error when Trying to `create-table`
Date: Sun, 23 Sep 2018 20:00:20 +0000

Sorry to E-mail, again, so soon but I may've found another bug.

After updating to the latest in the master branch from the previous 
stable release, I noticed that trying to create a table with the call I 
had been using no longer worked.

The call I'd been using was:

(migrate-create
   (create-table
     'PEOPLE
     '(ID       auto       (#:primary-key))
     '(USERNAME char-field (#:maxlen  32  #:not-null #:unique))
     '(PASSWORD char-field (#:maxlen 500  #:not-null))
     '(SALT     char-field (#:maxlen 500  #:not-null))
     '(NAME     char-field (#:maxlen  32))
     '(SUMMARY  char-field (#:maxlen 500))))

After updating to get the session fix, it now throws the error:

Creating table `PEOPLE'......Backtrace:
            5 (apply-smob/1 #<catch-closure 55c8442c0b80>)
In ice-9/boot-9.scm:
     705:2  4 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
     619:8  3 (_ #(#(#<directory (guile-user) 55c844356140>)))
In /usr/local/bin/art:
     42:12  2 (_ _ _)
In artanis/mvc/migration.scm:
      89:4  1 (create-table PEOPLE (ID auto (#:primary-key)) (# # #) # …)
In artanis/fprm.scm:
     375:2  0 (_ _ _ #:if-exists? _ #:engine _ #:dump _ #:primary-keys …)

artanis/fprm.scm:375:2: Invalid keyword: (USERNAME varchar 32 
(#:not-null #:unique))

Trying to isolate the error to a particular keyword, I tried removing 
the #:unique keyword and then the #:not-null keywords but I still got 
the same error. I didn't bother removing the #:maxlens since, if I 
remember correctly, that caused an error in the last stable release.

Jonathan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]