artanis
[Top][All Lists]
Advanced

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

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


From: Nala Ginrut
Subject: Re: [Artanis] "Invalid keyword" Error when Trying to `create-table`
Date: Tue, 02 Oct 2018 13:21:17 +0800
User-agent: mu4e 1.1.0; emacs 25.1.1

Hi Jonathan!
Sorry for late reply.
This bug has been fixed:
https://gitlab.com/NalaGinrut/artanis/commit/15f5cc1f1584ef02908cce21eb6f9f4aaeda3ac8

Please update and try.

Best regards.


Jonathan Schmeling writes:

> 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


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

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