You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# this is a bug in promptflow where they treat this input type differently
13
13
iftype(inputs) ==str:
14
-
inputs_dict=eval(inputs)
14
+
inputs_dict=json.loads(inputs)
15
15
else:
16
16
inputs_dict=inputs
17
+
first_name=inputs_dict['FirstName']
18
+
last_name=inputs_dict['LastName']
17
19
ifinputs_dict['MiddleName'] =="":
18
-
sqlQuery=f"""select * from [SalesLT].[Customer] WHERE FirstName='{inputs_dict['FirstName']}' and MiddleName is NULL and LastName='{inputs_dict['LastName']}'"""
20
+
middle_name="NULL"
19
21
else:
20
-
sqlQuery=f"""select * from [SalesLT].[Customer] WHERE FirstName='{inputs_dict['FirstName']}' and MiddleName='{inputs_dict['MiddleName']}' and LastName='{inputs_dict['LastName']}'"""
22
+
middle_name=inputs_dict['MiddleName']
23
+
sqlQuery=f"""select * from [SalesLT].[Customer] WHERE FirstName=? and MiddleName=? and LastName=?"""
0 commit comments