Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing script in FbBatchExecution [DNET134] #145

Closed
firebird-automations opened this issue Nov 17, 2007 · 3 comments
Closed

Error executing script in FbBatchExecution [DNET134] #145

firebird-automations opened this issue Nov 17, 2007 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: @cincuranet

This script is failing.

/* SQL Manager 2005 Lite for InterBase/Firebird 4.4.0.5 */
/* ---------------------------------------------------- */
/* Host : localhost */
/* Database : D:\BASE.FDB */

/* Definition for the `NEW_TABLE_ID_GEN` generator : */

CREATE GENERATOR NEW_TABLE_ID_GEN;

SET GENERATOR NEW_TABLE_ID_GEN TO 2;

/* Structure for the `NEW_TABLE` table : */

CREATE TABLE NEW_TABLE (
ID INTEGER NOT NULL,
POPIS VARCHAR(100) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UTF8);

ALTER TABLE NEW_TABLE ADD PRIMARY KEY (ID);

/* Data for the `NEW_TABLE` table (Records 1 - 2) */

INSERT INTO NEW_TABLE
VALUES (1, 'benzím');

INSERT INTO NEW_TABLE
VALUES (2, 'elektřina');

COMMIT WORK;

/* Definition for the `BI_NEW_TABLE_ID` trigger : */

SET TERM ^ ;

CREATE TRIGGER BI_NEW_TABLE_ID FOR NEW_TABLE
ACTIVE BEFORE INSERT
POSITION 0
AS
BEGIN
IF (http://NEW.ID IS NULL) THEN
http://NEW.ID = GEN_ID(NEW_TABLE_ID_GEN, 1);
END^

SET TERM ; ^

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Runs without problem.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Closed [ 6 ]

resolution: Cannot Reproduce [ 5 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants