Skip to content

Commit 3311272

Browse files
committed
Updated specimen date id in ti.insertspecimendatecal
1 parent e05a1f1 commit 3311272

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

function/ts/insertspecimendatecal.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
CREATE OR REPLACE FUNCTION ts.insertspecimendatecal(_specimendatecalid integer, _calage double precision DEFAULT NULL::double precision, _calageolder double precision DEFAULT NULL::double precision, _calageyounger double precision DEFAULT NULL::double precision, _calibrationcurveid integer DEFAULT NULL::integer, _calibrationprogramid integer DEFAULT NULL::integer, _datecalibrated character varying DEFAULT NULL::character varying)
1+
CREATE OR REPLACE FUNCTION ts.insertspecimendatecal(_specimendateid integer, _calage double precision DEFAULT NULL::double precision, _calageolder double precision DEFAULT NULL::double precision, _calageyounger double precision DEFAULT NULL::double precision, _calibrationcurveid integer DEFAULT NULL::integer, _calibrationprogramid integer DEFAULT NULL::integer, _datecalibrated character varying DEFAULT NULL::character varying)
22
RETURNS integer
33
LANGUAGE sql
44
AS $function$
5-
INSERT INTO ndb.specimendatescal (specimendatecalid, calage, calageolder,
5+
INSERT INTO ndb.specimendatescal (specimendateid, calage, calageolder,
66
calageyounger, calibrationcurveid, calibrationprogramid, datecalibrated)
7-
VALUES (_specimendatecalid, _calage, _calageolder, _calageyounger,
7+
VALUES (_specimendateid, _calage, _calageolder, _calageyounger,
88
_calibrationcurveid, _calibrationprogramid,
99
TO_DATE(_datecalibrated, 'YYYY-MM-DD'))
1010
RETURNING specimendatecalid

0 commit comments

Comments
 (0)