This commit is contained in:
Shohei Murayama 2015-03-18 19:33:47 +09:00
parent b1f27c1996
commit 296730fbc6

View File

@ -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