Permalink
Browse files

filename blank situation

  • Loading branch information...
nakagami committed Apr 9, 2011
1 parent ef3e8d8 commit 6271722e5fc8ab6e45a56a24c9a8822be8aed224
Showing with 1 addition and 1 deletion.
  1. +1 −1 firebirdsql/fbcore.py
View
@@ -798,7 +798,7 @@ def _op_connect(self):
p.pack_int(self.op_attach)
p.pack_int(2) # CONNECT_VERSION2
p.pack_int(1) # Arch type (Generic = 1)
- p.pack_string(self.str_to_bytes(self.filename))
+ p.pack_string(self.str_to_bytes(self.filename if self.filename else ''))
p.pack_int(1) # Protocol version understood count.
p.pack_bytes(self.uid())
p.pack_int(10) # PROTOCOL_VERSION10

0 comments on commit 6271722

Please sign in to comment.