Net->client structures macro added

sql/mysql_priv.h:
  This macro compiles as network-sending in usual case and as writing record
  into client structures in embedded case
This commit is contained in:
unknown 2002-06-17 16:41:04 +05:00
parent f4b014d5c3
commit ea10430d9c

View File

@ -781,4 +781,13 @@ inline void mark_as_null_row(TABLE *table)
bfill(table->null_flags,table->null_bytes,255);
}
#ifdef EMBEDDED_LIBRARY
int embedded_send_row(THD *thd, int n_fields, char *data, int data_len);
#define SEND_ROW(thd, net, n_fields, data, data_len)\
embedded_send_row(thd, n_fields, data, data_len)
#else
#define SEND_ROW(thd, net, n_fields, data, data_len)\
my_net_write(net, data, data_len)
#endif
#endif