mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-09-19 05:07:12 +03:00
Pointwised.
This commit is contained in:
parent
5762a41da3
commit
dac76081b6
@ -259,13 +259,13 @@ defineTableTypes tableVar' relVar' insVar' insQVar' recordType' table columns =
|
||||
return $ iDs ++ dDs
|
||||
|
||||
tableSQL :: Bool -> String -> String -> String
|
||||
tableSQL normalize schema table = normalizeS schema ++ '.' : normalizeT table where
|
||||
tableSQL normalize schema table = normalizeS ++ '.' : normalizeT where
|
||||
normalizeS
|
||||
| normalize = map toUpper
|
||||
| otherwise = id
|
||||
| normalize = map toUpper schema
|
||||
| otherwise = schema
|
||||
normalizeT
|
||||
| normalize = map toLower
|
||||
| otherwise = id
|
||||
| normalize = map toLower table
|
||||
| otherwise = table
|
||||
|
||||
derivationVarNameDefault :: String -> VarName
|
||||
derivationVarNameDefault = (`varNameWithPrefix` "derivationFrom")
|
||||
|
Loading…
Reference in New Issue
Block a user