Qingqing Zhou wrote: > *************** > *** 149,155 **** > if (!(*stmt = (struct statement *) ECPGalloc(sizeof(struct > statement), lineno))) return false; > > ! (*stmt)->command = query; > (*stmt)->connection = connection; > (*stmt)->lineno = lineno; > (*stmt)->compat = compat; > --- 150,156 ---- > if (!(*stmt = (struct statement *) ECPGalloc(sizeof(struct > statement), lineno))) return false; > > ! (*stmt)->command = (char *)query; > (*stmt)->connection = connection; > (*stmt)->lineno = lineno; > (*stmt)->compat = compat;
This sort of "cheating" should be avoided. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings