|
[
Permalink
| « Hide
]
Dmitry Yemanov added a comment - 14/Feb/11 10:20 AM
Adriano, hopefully you understand the DSQL internals better in order to fix that ;-)
Hello!
Server WI-V6.3.2.26539 Firebird 2.5 Client 2.5.2.26539 Example: CREATE TABLE TEST1 ( ID INTEGER NOT NULL, BALANCE DOUBLE PRECISION ); ALTER TABLE TEST1 ADD CONSTRAINT PK_TEST1 PRIMARY KEY (ID); SET TERM ^ ; create or alter procedure S_TEST1 ( I_ID integer) returns ( O_BALANCE double precision) as begin select T.BALANCE from TEST1 T where T.ID = :I_ID into O_BALANCE; O_BALANCE = coalesce(O_BALANCE, 0); suspend; end^ SET TERM ; ^ GRANT SELECT ON TEST1 TO PROCEDURE S_TEST1; Generating random test data (50,000 records) When run the query: select t.id, sum((select O_BALANCE from s_test1(t.ID))) from test1 t group by 1, 2 server is shut down with error: internal Firebird consistency check (EVL_expr: invalid operation (232), file: evl.cpp line: 1207) This was fixed in some now unknown commit.
|
||||||||||||||||||||||||||||||||||||||||||||||