on 2019 Jul 04 9:16 AM
(update: scroll down for a workaround)
Here's the simple V17 reproducible; the database is empty, and there is no "other connection".
-- V17 SELECT @@VERSION; CREATE SEQUENCE s; MESSAGE STRING ( 's.nextval = ', s.nextval ) TO CONSOLE; DROP SEQUENCE s; SELECT '...done' AS status; @@VERSION '17.0.9.4882' s.nextval = 1 Could not execute statement. Sequence 's' in use by another connection SQLCODE=-1366, ODBC 3 State="40001" Line 5, column 1 You can continue executing or stop. DROP SEQUENCE s status '...done'
-- V16 SELECT @@VERSION; CREATE SEQUENCE s MESSAGE STRING ( 's.nextval = ', s.nextval ) TO CONSOLE; DROP SEQUENCE s; SELECT '...done' AS status; @@VERSION '16.0.0.2512' s.nextval = 1 status '...done'
-- V17 -- Workaround: Don't call s.nextval in MESSAGE statement. BEGIN SELECT @@VERSION; CREATE SEQUENCE s; DECLARE @diagnostic LONG VARCHAR; SELECT STRING ( 's.nextval = ', s.nextval ) INTO @diagnostic; MESSAGE STRING ( @diagnostic ) TO CONSOLE; DROP SEQUENCE s; SELECT '...done' AS status; END; @@VERSION '17.0.9.4882' s.nextval = 1 status '...done'
User | Count |
---|---|
66 | |
11 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.