*** pool_rewrite_query.c.orig 2010-02-08 15:49:51.000000000 +0900 --- pool_rewrite_query.c 2010-02-09 11:02:04.000000000 +0900 *************** *** 82,96 **** --- 82,103 ---- if(!obj) { + pool_debug("getInsertRule chk:TypeCast"); + /* return -1; + */ } } if(obj && !IsA(obj, A_Const)) { + pool_debug("getInsertRule chk:A_Const"); + /* return -1; + */ } + /* pool_debug("getInsertRule loop_counter %d div_key_num %d",loop_counter,div_key_num); */ if (loop_counter == div_key_num) { constant = (A_Const *) obj;