I have a query that looks like this:
INSERT INTO SHRDGIH (
SHRDGIH_PIDM,
SHRDGIH_DGMR_SEQ_NO,
SHRDGIH_HONR_CODE,
SHRDGIH_ACTIVITY_DATE,
SHRDGIH_TRANSC_PRT_IND,
SHRDGIH_COMMENCE_PRT_IND,
SHRDGIH_USER_ID,
SHRDGIH_DATA_ORIGIN)
VALUES(
:StudentPIDM,
:DegreeSequence,
:InstitutionalHonors,
SYSDATE,
:TranscriptIndicator,
:CommencementReport,
USER,
'GradAutomation'
)
The query works fine BUT ... it seems like it keeps the data in memory and does not commit it.
If I manually commit it it's fine.
I figured that I could re-wirte it like this:
INSERT INTO SHRDGIH (
SHRDGIH_PIDM,
SHRDGIH_DGMR_SEQ_NO,
SHRDGIH_HONR_CODE,
SHRDGIH_ACTIVITY_DATE,
SHRDGIH_TRANSC_PRT_IND,
SHRDGIH_COMMENCE_PRT_IND,
SHRDGIH_USER_ID,
SHRDGIH_DATA_ORIGIN)
VALUES(
:StudentPIDM,
:DegreeSequence,
:InstitutionalHonors,
SYSDATE,
:TranscriptIndicator,
:CommencementReport,
USER,
'GradAutomation'
);
commit;
But when I do I get an error for "query improperly terminated".
BTW, this is an Oracle DB in case it matters.
Any ideas to get around this issue?
Thanks!
NOTE: I'm using a function to set the values.
Also node-red-contrib-oracledb-2