mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-01 13:52:12 +03:00
fix #6
This commit is contained in:
parent
b1f27c1996
commit
296730fbc6
@ -40,8 +40,8 @@ normalizeType = normalizeColumn . takeWhile (not . flip elem " (")
|
||||
notNull :: TableInfo -> Bool
|
||||
notNull info = isTrue . TableInfo.notnull $ info
|
||||
where
|
||||
isTrue 1 = True
|
||||
isTrue _ = False
|
||||
isTrue 0 = False
|
||||
isTrue _ = True
|
||||
|
||||
getType :: Map String TypeQ -> TableInfo -> Maybe (String, TypeQ)
|
||||
getType mapFromSql info = do
|
||||
|
Loading…
Reference in New Issue
Block a user