From 1ab35d92c64dab8694efc25134943b13cf2c1bf6 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Tue, 13 Aug 2024 07:34:11 +0200 Subject: [PATCH] trim extraneous, duplicate usage of as_str() (#564) --- vertica_python/vertica/cursor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vertica_python/vertica/cursor.py b/vertica_python/vertica/cursor.py index fea7e2ea..46e9867f 100644 --- a/vertica_python/vertica/cursor.py +++ b/vertica_python/vertica/cursor.py @@ -308,12 +308,12 @@ def executemany(self, ################################################################# m = self._insert_statement.match(operation) if m: - target = as_str(m.group('target')) + target = m.group('target') - variables = as_str(m.group('variables')) + variables = m.group('variables') variables = ",".join([variable.strip().strip('"') for variable in variables.split(",")]) - values = as_str(m.group('values')) + values = m.group('values') values = "|".join([value.strip().strip('"') for value in values.split(",")]) seq_of_values = [self.format_operation_with_parameters(values, parameters, is_copy_data=True) for parameters in seq_of_parameters]