Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function error when inserting new row. #19

Open
nipo1000 opened this issue Oct 6, 2015 · 1 comment
Open

Function error when inserting new row. #19

nipo1000 opened this issue Oct 6, 2015 · 1 comment

Comments

@nipo1000
Copy link

nipo1000 commented Oct 6, 2015

Postgresql vers.: 9.4
Table: vault_scanning.rolls

The command : SELECT audit.audit_table('rolls');
completed with no errors. However, when I insert a new row, with pgAdmin III, into the 'rolls' table I get the following error :-

An error has occurred:
ERROR: function hstore(vault_scanning.rolls) does not exist
LINE 1: SELECT hstore(NEW.) - excluded_cols
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT hstore(NEW.
) - excluded_cols

CONTEXT: PL/pgSQL function audit.if_modified_func() line 49 at assignment

OK

@nipo1000
Copy link
Author

nipo1000 commented Oct 6, 2015

The following code resolved the issue !!!!! :)
....
ELSIF (TG_OP = 'INSERT' AND TG_LEVEL = 'ROW') THEN
select into audit_row.row_data hstore(new) - excluded_cols;
....

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

No branches or pull requests

1 participant