Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sitingren committed Jul 1, 2023
1 parent d506994 commit b1321a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertica_python/vertica/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def __init__(self, options=None):
self.startup_connection()

# Complex types metadata is returned since protocol version 3.12
self.complex_types_enabled = self.parameters['protocol_version'] >= (3 << 16 | 12) and \
self.complex_types_enabled = self.parameters.get('protocol_version', 0) >= (3 << 16 | 12) and \
self.parameters.get('request_complex_types', 'off') == 'on'

self._logger.info('Connection is ready')
Expand Down

0 comments on commit b1321a3

Please sign in to comment.