sailorproject / sailor

A Lua MVC Web Framework.
MIT License
921 stars 125 forks source link

PostgreSQL values loaded to models as strings #165

Open d9k opened 6 years ago

d9k commented 6 years ago

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'.