Skip to content

Commit 12645bb

Browse files
committed
Increment next_dict_id in previous select query. By Dmitriy Olshevskiy
1 parent cd8e538 commit 12645bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎zson--1.0.sql

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ BEGIN
6060

6161
END LOOP;
6262

63-
select coalesce(max(dict_id), -1) INTO next_dict_id from zson_dict;
64-
next_dict_id := next_dict_id + 1;
63+
select coalesce(max(dict_id), -1) + 1 INTO next_dict_id from zson_dict;
6564

6665
query := 'select t from (select t, count(*) as sum from ( ' ||
6766
query || ' ) as tt group by t) as s where length(t) >= ' ||

0 commit comments

Comments
 (0)