There was an error while loading. Please reload this page.
1 parent 0994bd5 commit ca0163bCopy full SHA for ca0163b
1 file changed
src/Database/ClickHouse/Value.hs
@@ -153,6 +153,11 @@ string = Value $ \text ->
153
--
154
-- The inner 'Data.ByteString.ByteString' is written as-is (no length prefix),
155
-- which matches the RowBinary wire format for @FixedString@.
156
+--
157
+-- Note: this encoder does /not/ check or enforce that the byte string has
158
+-- exactly @n@ bytes, nor does it pad or truncate the value. It is the
159
+-- caller's responsibility to ensure the length matches the column's
160
+-- @FixedString(n)@ declaration.
161
fixedString :: forall (n :: GHC.TypeLits.Nat). Value (FixedString n)
162
fixedString = Value $ \(FixedString bs) ->
163
Data.ByteString.Builder.byteString bs
0 commit comments