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
{{ message }}
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
I unfortunately am stuck running postgres 8.4 on an old RHEL system and found that Achilles would report the following error:
statement, ...): execute JDBC update query failed in dbSendUpdate (ERROR: function right(text, integer) does not exist
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Something similar occurred for the 'left' function. 'right' and 'left' are a part of postgresql >=9 so I created these functions and Achilles completed its run without error:
CREATE OR REPLACE FUNCTION left(text, integer) RETURNS text AS $$ select substring($1 from 0 for $2 + 1); $$ LANGUAGE SQL IMMUTABLE;
CREATE OR REPLACE FUNCTION right(text, integer) RETURNS text AS $$ select substring($1 from char_length($1) +1 - $2); $$ LANGUAGE SQL IMMUTABLE;
Posting here in case it helps someone later.
-R
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I unfortunately am stuck running postgres 8.4 on an old RHEL system and found that Achilles would report the following error:
Something similar occurred for the 'left' function. 'right' and 'left' are a part of postgresql >=9 so I created these functions and Achilles completed its run without error:
CREATE OR REPLACE FUNCTION left(text, integer) RETURNS text AS $$ select substring($1 from 0 for$2 + 1); $ $ LANGUAGE SQL IMMUTABLE;
CREATE OR REPLACE FUNCTION right(text, integer) RETURNS text AS $$ select substring($1 from char_length($1) +1 -$2); $ $ LANGUAGE SQL IMMUTABLE;
Posting here in case it helps someone later.
-R
The text was updated successfully, but these errors were encountered: