Skip to content

Commit

Permalink
Merge pull request #21 from neha-rajput-salesforce/Neha
Browse files Browse the repository at this point in the history
@W-12178997: handled pandas.read_sql case @testfix@
  • Loading branch information
neha-rajput-salesforce authored Feb 20, 2023
2 parents 325542c + 3251920 commit bdfccdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salesforcecdpconnector/query_result_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _convert_timestamps(data, description):
if description[i][1] == DATA_TYPE_TIMESTAMP or description[i][1] == DATA_TYPE_TIMESTAMP_WITH_TIMEZONE:
for data_row in data:
if data_row[i] is not None and isinstance(data_row[i], str) and len(data_row[i]) > 0:
data_row[i] = str(dateutil.parser.parse(data_row[i]))
data_row[i] = dateutil.parser.parse(data_row[i])
elif description[i][1] == DATA_TYPE_DECIMAL:
for data_row in data:
if data_row[i] is not None and isinstance(data_row[i], str) and len(data_row[i]) > 0:
Expand Down

0 comments on commit bdfccdd

Please sign in to comment.