Skip to content

Commit

Permalink
Issue #5 Inserting data into PK fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aborngra committed May 27, 2017
1 parent 38ce48a commit 1783f42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions OM_TAPIGEN_BODY.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,12 @@ CREATE OR REPLACE PACKAGE BODY #TABLE_NAME_26#_api IS
FUNCTION create_row( #PARAM_DEFINITION_W_PK# )
RETURN #TABLE_NAME#."#PK_COLUMN#"%TYPE IS
v_pk #TABLE_NAME#."#PK_COLUMN#"%TYPE;
BEGIN'
BEGIN
v_pk := '
|| CASE
WHEN g_sequence_name IS NOT NULL THEN '
v_pk := COALESCE( p_#PK_COLUMN_28#, #SEQUENCE_NAME#.nextval );'
ELSE NULL
COALESCE( p_#PK_COLUMN_28#, #SEQUENCE_NAME#.nextval );'
ELSE 'p_#PK_COLUMN_28#;'
END
|| '
INSERT INTO #TABLE_NAME# ( #COLUMN_LIST_W_PK# )
Expand Down

0 comments on commit 1783f42

Please sign in to comment.