Skip to content

Commit 79b59da

Browse files
committed
Replaced raw sql with dedicated truncate_table() to fix SQL Injection Vulnerability
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
1 parent 934c37f commit 79b59da

File tree

1 file changed

+1
-1
lines changed
  • sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store

1 file changed

+1
-1
lines changed

sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store/oracle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _write_data_source(
112112
f"Table '{table_ref}' already exists. "
113113
f"Set allow_overwrite=True to truncate and replace data."
114114
)
115-
con.raw_sql(f"TRUNCATE TABLE {table_ref}")
115+
con.truncate_table(table_ref)
116116

117117
con.insert(table_name=table_ref, obj=table.to_pandas())
118118

0 commit comments

Comments
 (0)