Lines Matching refs:bind
489 /* bind the actual data supplied in Prolog structure tuple to the buffers in
573 fprintf(stderr,"DEBUG bind int argbuf 0x%x int %d\n",
814 statements. Does not execute or bind the parameters for the statement
822 MYSQL_BIND * bind = NULL;
869 TryFree(bind);
877 if (!(bind = (MYSQL_BIND *)malloc(sizeof(MYSQL_BIND)*query->arity)))
882 memset(bind, 0, sizeof(MYSQL_BIND)*query->arity);
983 bind[i].buffer_type = m->ext_type;
984 bind[i].buffer = (char *)b+m->offset;
985 bind[i].buffer_length = m->size;
986 bind[i].length = (unsigned long *) &(tlengths[i]);
987 bind[i].is_null = &(m->is_null);
989 bind[i].error = &(errors[i]);
992 fprintf(stderr,"DEBUG bind[%2d]\toff=%8d,size=%8d,ext_type=%8d,dbtype=%8d\n",
995 bind[i].length,
996 bind[i].buffer_type,
1002 if (mysql_stmt_bind_result(cursor->s.stmt, bind))
1006 TryFree(bind);
1011 TryFree(bind);
1018 TryFree(bind);
1027 /* prepare the param template's data buffer, and bind them to the DB */
1037 MYSQL_BIND *bind = NULL;
1085 if (!(bind = (MYSQL_BIND *)malloc(sizeof(MYSQL_BIND)*template->arity)))
1090 memset(bind, 0, sizeof(MYSQL_BIND)*template->arity);
1101 bind[i].length = &(cursor->param_datalengths[i]);
1102 bind[i].buffer_type = m->ext_type;
1103 bind[i].buffer = (char *) b + m->offset;
1104 bind[i].buffer_length = m->size;
1105 bind[i].is_null = &(m->is_null);
1108 if (err=mysql_stmt_bind_param(cursor->s.stmt, bind))
1110 TryFree(bind);