Hello.

I feed the followind DDL SQL code to slonik:

==============================================
-- Execute all schema changes.
SET statement_timeout TO 0;

/*
select count(distinct person_id)
from
    person
    join dictionary on dic_category_id=11
    left join person_settings on ps_person_id=person_id and ps_did=dic_id
where
    ps_person_id is null
-- only 9000!
*/

CREATE SEQUENCE "public"."obj_setting_os_id_seq"
    INCREMENT 1  MINVALUE 1
    MAXVALUE 9223372036854775807  START 1
    CACHE 1;
==============================================

But I see that ALL DDL code below the comment is removed, not only the
comment:

DDL Statement 0: (0,99) [
                    -- Execute all schema changes.
                    SET statement_timeout TO 0;]
Submit DDL Event to subscribers...
DDL on origin - PGRES_TUPLES_OK

Seems slonik & others parser parses SQL code incorrectly - skips everything
after a multi-line comment.
Please fix this in a new version...
_______________________________________________
Slony1-general mailing list
[email protected]
http://lists.slony.info/mailman/listinfo/slony1-general

Reply via email to