mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 06:37:03 +03:00
relational-query-HDBC: warn about primary-key only enableWarning.
This commit is contained in:
parent
9542af81d5
commit
945eabda7d
@ -129,7 +129,7 @@ tableAlongWithSchema connect config drv scm tbl derives = do
|
||||
| verboseAsCompilerWarning config = reportWarning
|
||||
| otherwise = const $ pure ()
|
||||
mapM_ (foldLog reportVerbose reportWarning' reportError) logs
|
||||
when (null primaryCols) . reportWarning
|
||||
when (null primaryCols) . reportWarning'
|
||||
$ "getPrimaryKey: Primary key not found for table: " ++ scm ++ "." ++ tbl
|
||||
|
||||
let colIxMap = Map.fromList $ zip [c | (c, _) <- cols] [(0 :: Int) .. ]
|
||||
|
Loading…
Reference in New Issue
Block a user