svnno****@sourc*****
svnno****@sourc*****
2008年 6月 27日 (金) 12:32:54 JST
Revision: 161 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tritonn&view=rev&rev=161 Author: mir Date: 2008-06-27 12:32:53 +0900 (Fri, 27 Jun 2008) Log Message: ----------- upgraded ha_tritonn::rnd_next. now returns dummy data Modified Paths: -------------- trunk/src/ha_tritonn.cc -------------- next part -------------- Modified: trunk/src/ha_tritonn.cc =================================================================== --- trunk/src/ha_tritonn.cc 2008-06-26 02:26:00 UTC (rev 160) +++ trunk/src/ha_tritonn.cc 2008-06-27 03:32:53 UTC (rev 161) @@ -304,7 +304,9 @@ { DBUG_ENTER("ha_tritonn::rnd_init"); DBTN; - call_senna_ql(ctx,"(dump-table <t1>)", false); + char buf[1024]; + my_snprintf(buf,1024,"(dump-table <%s>)", share->short_name); + call_senna_ql(ctx,buf, false); DBUG_RETURN(0); } @@ -316,11 +318,17 @@ unsigned int res_len; int res_flags; char *row; + *(buf) &= ~0x1; + *(buf) &= ~0x2; sen_ctx_recv(ctx,&res,&res_len,&res_flags); if (res_flags & SEN_CTX_MORE) { row = (char*) calloc(1,1024); printf("[SennaQL] returned row => %s\n",strncat(row,res,res_len)); free(row); + for (Field **field=table->field; *field ; field++) { + (*field)->store("dummy",5,system_charset_info); + printf("hoge\n"); + } DBUG_RETURN(0); } else { DBUG_RETURN(HA_ERR_END_OF_FILE);