Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL values loaded to models as strings #165

Open
d9k opened this issue Jun 19, 2018 · 0 comments
Open

PostgreSQL values loaded to models as strings #165

d9k opened this issue Jun 19, 2018 · 0 comments

Comments

@d9k
Copy link

d9k commented Jun 19, 2018

I have PostgreSQL database including table with column

active boolean NOT NULL DEFAULT true,

I have a sailor model with attribute validator:

{ active = valua:new().boolean() },

When I load PostgreSQL record to sailor model sql true value becomes lua string 't'.
And sql false becomes lua string 'f'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant