Index: csdbd.c =================================================================== --- csdbd.c (revision 4) +++ csdbd.c (working copy) @@ -133,6 +133,27 @@ } if(msgb) free(msgb); } + } else { + /* We have to perform it localy */ + int indexes[CSDBMAXCOLUMNS]; + maxa=-1; + for(i=0;i='0' && returnformat[i]<='9') { + n=(int)(returnformat[i]-'0'); + indexes[n]=i; + if(maxa=0) bv=atoi(SQL_V(b)); + switch(maxa) { + case 0: textlist_addorder(ptl, SQL_V(indexes[0]), bv); break; + case 1: textlist_addorder2(ptl, SQL_V(indexes[0]), SQL_V(indexes[1]), bv); break; + case 2: textlist_addorder3(ptl, SQL_V(indexes[0]), SQL_V(indexes[1]), SQL_V(indexes[2]), bv); break; + } + } SQL_END } if(sql) free(sql); if(total) free(total);