@@ -110,6 +110,8 @@ import GHC.TypeLits
111import qualified Generics.SOP.Type.Metadata as Type
111import qualified Generics.SOP.Type.Metadata as Type
113+import Squeal.PostgreSQL.Render
113-- | `PGType` is the promoted datakind of PostgreSQL types.
115-- | `PGType` is the promoted datakind of PostgreSQL types.
115-- >>> import Squeal.PostgreSQL.Schema
117-- >>> import Squeal.PostgreSQL.Schema
@@ -358,9 +360,9 @@ instance alias1 ~ alias2 => IsLabel alias1 (Alias alias2) where
358 fromLabel = Alias
360 fromLabel = Alias
360-- | >>> renderAlias #jimbob
362-- | >>> renderAlias #jimbob
361−-- "jimbob"
363+-- "\"jimbob\""
362renderAlias :: KnownSymbol alias => Alias alias -> ByteString
364renderAlias :: KnownSymbol alias => Alias alias -> ByteString
363−renderAlias = fromString . symbolVal
365+renderAlias = doubleQuoted . fromString . symbolVal
365-- | The `As` operator is used to name an expression. `As` is like a demoted
367-- | The `As` operator is used to name an expression. `As` is like a demoted
366-- version of `:::`.
368-- version of `:::`.