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
"hint": "Try renaming the parameters or the function itself in the database so function overloading can be resolved",
1011
+
"message": "Could not choose the best candidate function between: public.polymorphic_function_with_unnamed_default(), public.polymorphic_function_with_unnamed_default( => text)",
"hint": "Try renaming the parameters or the function itself in the database so function overloading can be resolved",
1071
+
"message": "Could not choose the best candidate function between: public.polymorphic_function_with_unnamed_default_overload(), public.polymorphic_function_with_unnamed_default_overload( => text)",
"details": "Searched for the function public.blurb_messages with parameters channel_id, data, id, message, username or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.",
1130
+
"details": "Searched for the function public.blurb_message without parameters or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.",
1131
+
"hint": "Perhaps you meant to call the function public.get_messages",
1132
+
"message": "Could not find the function public.blurb_message without parameters in the schema cache",
1133
+
},
1134
+
"status": 404,
1135
+
"statusText": "Not Found",
1136
+
}
1137
+
`)
1138
+
})
1139
+
test('function with blurb_message with params',async()=>{
1140
+
constres=awaitpostgrest.rpc('blurb_message',{
1141
+
'': {
1142
+
channel_id: 1,
1143
+
data: null,
1144
+
id: 1,
1145
+
message: null,
1146
+
username: 'test',
1147
+
blurb_message: null,
1148
+
},
1149
+
})
1150
+
letresult: Exclude<typeofres.data,null>
1151
+
letexpected: SelectQueryError<'the function public.blurb_message with parameter or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache'>
"details": "Searched for the function public.blurb_message with parameter or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.",
1152
1160
"hint": "Perhaps you meant to call the function public.get_messages",
1153
-
"message": "Could not find the function public.blurb_messages(channel_id, data, id, message, username) in the schema cache",
1161
+
"message": "Could not find the function public.blurb_message() in the schema cache",
}&'Could not choose the best candidate function between: polymorphic_function_with_unnamed_default( => int4), polymorphic_function_with_unnamed_default(). Try renaming the parameters or the function itself in the database so function overloading can be resolved'
}&'Could not choose the best candidate function between: polymorphic_function_with_unnamed_default_overload( => int4), polymorphic_function_with_unnamed_default_overload(). Try renaming the parameters or the function itself in the database so function overloading can be resolved'
}&'Could not choose the best candidate function between: postgrest_unresolvable_function(a => int4), postgrest_unresolvable_function(a => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved'
859
+
}
860
+
|{
861
+
Args: {a: number}
862
+
Returns: {
863
+
error: true
864
+
}&'Could not choose the best candidate function between: postgrest_unresolvable_function(a => int4), postgrest_unresolvable_function(a => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved'
0 commit comments