Skip to content

Commit 8bfc4c1

Browse files
Ja bist du narrischJa bist du narrisch
authored andcommitted
Show errors in oracle script
1 parent 1cfd443 commit 8bfc4c1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,15 @@ jobs:
8686
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"
8787
- name: Create Oracle user
8888
run: |
89-
sql test/test@localhost/FREEPDB1 @.github/workflows/sql/oracle.sql
89+
sql test/test@localhost/FREEPDB1 <<EOF
90+
WHENEVER SQLERROR EXIT SQL.SQLCODE
91+
SET ECHO ON
92+
SET FEEDBACK ON
93+
SET SERVEROUTPUT ON
94+
@.github/workflows/sql/oracle.sql
95+
EXIT;
96+
EOF
97+
9098
- name: Restore dependencies
9199
run: |
92100
dotnet restore Migrator.slnx

.github/workflows/sql/oracle.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
WHENEVER SQLERROR EXIT SQL.SQLCODE
2+
13
alter session set container = freepdb1;
24
create user k identified by k;
35
grant
@@ -13,4 +15,6 @@ grant resource to k with admin option;
1315
grant connect to k with admin option;
1416
grant
1517
unlimited tablespace
16-
to k with admin option;
18+
to k with admin option;
19+
20+
exit;

0 commit comments

Comments
 (0)