Skip to content

Fix drop script of stored function for PostgreSQL #23

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paakmau
Copy link

@paakmau paakmau commented Apr 21, 2025

This PR fix a problem:

When running the drop script by ./runDatabaseDestroy.sh sample.postgresql.properties

It will raise ERROR: type "var" does not exist.

Here's the log:

# ------------------------------------------------------------
# Loading SQL file ./sql.postgres/storedProcedureDrops.sql
# ------------------------------------------------------------
drop function if exists bmsql_proc_new_order (integer, integer, integer, integer[], integer[], integer[]);
drop function if exists bmsql_proc_stock_level(integer, integer, integer);
drop function if exists bmsql_proc_payment(integer, integer, integer, integer, integer, varchar(16), decimal(6,2));
drop function if exists bmsql_proc_order_status (integer, integer, integer, var(16));
ERROR: type "var" does not exist
drop function if exists bmsql_cid_from_clast(integer, integer, varchar(16));
drop function if exists bmsql_proc_delivery_bg (integer, integer, integer);

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.

1 participant