Chris Browne cbbrowne at lists.slony.info
Tue Oct 23 07:49:46 PDT 2007
Update of /home/cvsd/slony1/slony1-engine/src/parsestatements
In directory main.slony.info:/tmp/cvs-serv9538

Modified Files:
      Tag: REL_1_2_STABLE
	test_sql.expected.win32 
Added Files:
      Tag: REL_1_2_STABLE
	cstylecomments.expected.win32 
Log Message:
Per Hiroshi Saito, 2007-10-23.


--- NEW FILE: cstylecomments.expected.win32 ---
Input: -- Have two statements separated by a C-style string
select * from a;
/*
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!
*/
select * from b;
/************ *foooo*   /- *
/   here is a tremendously ugly C-style comment
* * * * * /
-- **{***(***[****/
select * from c;

/* lets have a comment and a  /* nested comment */ */
-- Force a query to be at the end...

create table foo;

statement 0
-------------------------------------------
-- Have two statements separated by a C-style string
select * from a;
statement 1
-------------------------------------------

/*
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!
*/
select * from b;
statement 2
-------------------------------------------

/************ *foooo*   /- *
/   here is a tremendously ugly C-style comment
* * * * * /
-- **{***(***[****/
select * from c;
statement 3
-------------------------------------------


/* lets have a comment and a  /* nested comment */ */
-- Force a query to be at the end...

create table foo; 
Index: test_sql.expected.win32
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/parsestatements/test_sql.expected.win32,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -d -r1.3.2.1 -r1.3.2.2
*** test_sql.expected.win32	29 Aug 2007 15:14:31 -0000	1.3.2.1
--- test_sql.expected.win32	23 Oct 2007 14:49:44 -0000	1.3.2.2
***************
*** 60,65 ****
  
  -- Some more torturing per Weslee Bilodeau
! 
! -- I figure the $_$, $$, etc edge-casees would be another fun one to roll
  -- into a custom parser.
  
--- 60,64 ----
  
  -- Some more torturing per Weslee Bilodeau
! -- I figure the $_$, $$, etc edge-cases would be another fun one to roll
  -- into a custom parser.
  
***************
*** 194,199 ****
  
  -- Some more torturing per Weslee Bilodeau
! 
! -- I figure the $_$, $$, etc edge-casees would be another fun one to roll
  -- into a custom parser.
  
--- 193,197 ----
  
  -- Some more torturing per Weslee Bilodeau
! -- I figure the $_$, $$, etc edge-cases would be another fun one to roll
  -- into a custom parser.
  



More information about the Slony1-commit mailing list