Skip to content

Conversation

yuki-tei
Copy link
Contributor

Hi team,
Greetings. Hope you are doing well and healthy.

What Changed?

Changed some argument values because part of them cannot be implicitly type casted, which leads to "No function matches the given name and argument types" error.

Your original SQL sample is:
SELECT sp_activate(tracefortestuser,0011,134,25,10000,30);

tracefortestuser => 'tracefortestuser' : Cannot be without single-quotation or will be see as unknown identifier.
0011 => '0011': Cannot be casted to oidvector as long as it is integer.
134 => '134': Cannot be casted to oidvector as long as it is integer.
30 => '30 minutes' : Cannot be casted to interval as long as it is integer. If you means 30 minutes then it should be as string like this.

Kind Regards,
Yuki Tei

@yuki-tei yuki-tei requested a review from a team as a code owner April 21, 2025 07:47
@piano35-edb
Copy link
Contributor

Pending confirmation of the correction from sqlprofiler dev.

@S-SrinathReddy
Copy link

@piano35-edb LGTM but to be clearer and safer for the last argument we can set as " interval '30 minutes' ".
ex:- select * from sp_activate('ironman', '10', '15489', 0, -1, interval '30 minutes');

@piano35-edb
Copy link
Contributor

Added fix to branch docs-small-fixes-071825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants