Skip to content

Commit

Permalink
Update type map to allow it to infer datetime.date objects
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Whitehouse <[email protected]>
  • Loading branch information
Jesse Whitehouse committed Sep 25, 2023
1 parent 3333ca0 commit 554623f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/databricks/sql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def infer_types(params: list[DbSqlParameter]):
int: DbSqlType.INTEGER,
float: DbSqlType.FLOAT,
datetime.datetime: DbSqlType.TIMESTAMP,
datetime.date: DbSqlType.DATE,
bool: DbSqlType.BOOLEAN,
}
newParams = copy.deepcopy(params)
Expand Down

0 comments on commit 554623f

Please sign in to comment.