mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
Data is padded with spaces instead of 0-filled
for test_db_secondary Addresses #68 git-svn-id: file:///svn/tokudb@812 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
528663a292
commit
aea1b4c69d
1 changed files with 5 additions and 4 deletions
|
@ -29,7 +29,7 @@ struct student_record {
|
|||
char last_name[15];
|
||||
char first_name[15];
|
||||
};
|
||||
|
||||
#define SPACES " "
|
||||
DB *dbp;
|
||||
DB *sdbp;
|
||||
DB_TXN *const null_txn = 0;
|
||||
|
@ -77,9 +77,10 @@ void second_setup() {
|
|||
|
||||
void setup_student(struct student_record *s) {
|
||||
memset(s, 0, sizeof(struct student_record));
|
||||
memcpy(&s->student_id, "WC42", strlen("WC42"));
|
||||
memcpy(&s->last_name, "Churchill", strlen("Churchill"));
|
||||
memcpy(&s->first_name, "Winston", strlen("Winston"));
|
||||
memcpy(&s->student_id, "WC42" SPACES, sizeof(s->student_id));
|
||||
//Padded with enough spaces to fill out last/first name.
|
||||
memcpy(&s->last_name, "Churchill" SPACES, sizeof(s->last_name));
|
||||
memcpy(&s->first_name, "Winston" SPACES, sizeof(s->first_name));
|
||||
}
|
||||
|
||||
void insert_test() {
|
||||
|
|
Loading…
Add table
Reference in a new issue