Chris Browne cbbrowne at lists.slony.info
Fri Jul 20 13:20:15 PDT 2007
Update of /home/cvsd/slony1/slony1-engine/src/slonik
In directory main.slony.info:/tmp/cvs-serv20342/slonik

Modified Files:
	slonik.c 
Log Message:
Add "%s" parameter so that printf() does not interpret anything inside
DDL requests.  As observed by Dmitry Koterov <dmitry at koterov.ru>.


Index: slonik.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slonik/slonik.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** slonik.c	20 Jul 2007 19:59:54 -0000	1.81
--- slonik.c	20 Jul 2007 20:20:13 -0000	1.82
***************
*** 3601,3605 ****
  		strncpy(dest, dstring_data(&script) + startpos, endpos-startpos);
  		dest[STMTS[stmtno]-startpos] = 0;
! 		slon_mkquery(&query, dest);
  		printf("DDL Statement %d: (%d,%d) [%s]\n", stmtno, startpos, endpos, dest);
  		free(dest);
--- 3601,3605 ----
  		strncpy(dest, dstring_data(&script) + startpos, endpos-startpos);
  		dest[STMTS[stmtno]-startpos] = 0;
! 		slon_mkquery(&query, "%s", dest);
  		printf("DDL Statement %d: (%d,%d) [%s]\n", stmtno, startpos, endpos, dest);
  		free(dest);



More information about the Slony1-commit mailing list