File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Database/PostgreSQL/Protocol Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module Database.PostgreSQL.Protocol.Types where
12
12
import Data.Word (Word32 , Word8 )
13
13
import Data.Int (Int32 , Int16 )
14
14
import Data.Hashable (Hashable )
15
- import Data.ByteString (ByteString )
15
+ import Data.ByteString as B (ByteString , null )
16
16
import Data.Vector (Vector )
17
17
18
18
-- Common
@@ -69,7 +69,8 @@ data ServerVersion = ServerVersion Word8 Word8 Word8 ByteString
69
69
70
70
instance Show ServerVersion where
71
71
show (ServerVersion major minor revision desc) =
72
- show major ++ " ." ++ show minor ++ " ." ++ show revision ++ show desc
72
+ " v" ++ show major ++ " ." ++ show minor ++ " ." ++ show revision
73
+ ++ if B. null desc then " " else show desc
73
74
74
75
data TransactionStatus
75
76
-- | not in a transaction block
You can’t perform that action at this time.
0 commit comments