Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Reported for Version 1.08 » View Incident Report |
Minor |
Reported By: Tim Young Reported On: 3/17/2008 For: Version 1.08 Build 1 |
CREATE PROCEDURE "InsertDocument" (OUT "DocumentID" INTEGER, IN "SiteID" INTEGER, IN "TypeID" INTEGER, IN "DocDate" DATE, IN "DateReceived" DATE, IN "Title" VARCHAR COLLATE ANSI, IN "Author" VARCHAR COLLATE ANSI, IN "Recipient" VARCHAR COLLATE ANSI, IN "StatusID" INTEGER) BEGIN DECLARE Stmt STATEMENT; DECLARE TempCursor SENSITIVE CURSOR FOR CursorStmt; PREPARE Stmt FROM 'INSERT INTO Documents (DocumentID, TypeID, Date, DateReceived, Title, Author, Recipient, StatusID) VALUES (?, ?, ?, ?, ?, ?, ?, ?)'; EXECUTE Stmt USING DocumentID, TypeID, DocDate, DateReceived, Title, Author, Recipient, StatusID; UNPREPARE Stmt; -- Now DocumentID should contain the next document ID PREPARE CursorStmt FROM 'SELECT * FROM Document2Site WHERE (DocumentID = ?) AND (SiteID = ?)'; OPEN TempCursor USING DocumentID, SiteID; IF ROWCOUNT(TempCursor) = 0 THEN INSERT INTO TempCursor (DocumentID, SiteID) VALUES (DocumentID, SiteID); END IF; END
This web page was last updated on Tuesday, April 23, 2024 at 08:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |