58
58
DT_FIELD_INFO pbms_cloud_info[]=
60
{"Id", NULL, NULL, MYSQL_TYPE_LONG, NULL, NOT_NULL_FLAG, "The Cloud storage reference ID"},
60
{"Id", NOVAL, NULL, MYSQL_TYPE_LONG, NULL, NOT_NULL_FLAG, "The Cloud storage reference ID"},
61
61
{"Server", 1024, NULL, MYSQL_TYPE_VARCHAR, &UTF8_CHARSET, NOT_NULL_FLAG, "S3 server name"},
62
62
{"Bucket", 124, NULL, MYSQL_TYPE_VARCHAR, &UTF8_CHARSET, NOT_NULL_FLAG, "S3 bucket name"},
63
63
{"PublicKey", 124, NULL, MYSQL_TYPE_VARCHAR, &UTF8_CHARSET, NOT_NULL_FLAG, "S3 public key"},
64
64
{"PrivateKey", 124, NULL, MYSQL_TYPE_VARCHAR, &UTF8_CHARSET, NOT_NULL_FLAG, "S3 private key"},
65
{NULL,NULL, NULL, MYSQL_TYPE_STRING,NULL, 0, NULL}
65
{NULL,NOVAL, NULL, MYSQL_TYPE_STRING,NULL, 0, NULL}
68
68
DT_KEY_INFO pbms_cloud_keys[]=
250
250
save_write_set = table->write_set;
251
251
table->write_set = NULL;
253
254
memset(buf, 0xFF, table->getNullBytes());
256
memset(buf, 0xFF, table->s->null_bytes);
254
258
for (Field **field=GET_TABLE_FIELDS(table) ; *field ; field++) {
255
259
curr_field = *field;
256
260
save = curr_field->ptr;
257
261
#if MYSQL_VERSION_ID < 50114
258
262
curr_field->ptr = (byte *) buf + curr_field->offset();
260
265
curr_field->ptr = (byte *) buf + curr_field->offset(curr_field->getTable()->getInsertRecord());
267
curr_field->ptr = (byte *) buf + curr_field->offset(curr_field->table->record[0]);
262
270
switch (curr_field->field_name[0]) {