~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/r/transaction_log_transaction.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-12-21 16:39:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101221163940-c1pfo1jjvx7909xq
Tags: 2010.12.06-0ubuntu1
* New upstream release.
* Added libaio-dev build depend for InnoDB.
* Removed libpcre patch - applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
      after_value: "1000"
173
173
      is_null: false
174
174
    }
 
175
  }
 
176
}
 
177
statement {
 
178
  type: UPDATE
 
179
  START_TIMESTAMP
 
180
  END_TIMESTAMP
 
181
  update_header {
 
182
    table_metadata {
 
183
      schema_name: "test"
 
184
      table_name: "t1"
 
185
    }
 
186
    key_field_metadata {
 
187
      type: INTEGER
 
188
      name: "a"
 
189
    }
 
190
    set_field_metadata {
 
191
      type: INTEGER
 
192
      name: "b"
 
193
    }
 
194
  }
 
195
  update_data {
 
196
    segment_id: 1
 
197
    end_segment: true
175
198
    record {
176
199
      key_value: "2"
177
200
      after_value: "2"
1294
1317
Check transaction_log_entries
1295
1318
SELECT COUNT(*) FROM DATA_DICTIONARY.TRANSACTION_LOG_ENTRIES;
1296
1319
COUNT(*)
1297
 
6
 
1320
5
1298
1321
 
1299
1322
Check transaction_log_transactions
1300
1323
SELECT COUNT(*) FROM DATA_DICTIONARY.TRANSACTION_LOG_TRANSACTIONS;
1301
1324
COUNT(*)
1302
 
6
 
1325
5
1303
1326
Check transaction log contents
1304
1327
SELECT PRINT_TRANSACTION_MESSAGE('transaction.log',(select max(entry_offset) from DATA_DICTIONARY.TRANSACTION_LOG_TRANSACTIONS));
1305
1328
PRINT_TRANSACTION_MESSAGE('transaction.log',(select max(entry_offset) from DATA_DICTIONARY.TRANSACTION_LOG_TRANSACTIONS))
1316
1339
  insert_header {
1317
1340
    table_metadata {
1318
1341
      schema_name: "test"
1319
 
      table_name: "t2"
 
1342
      table_name: "t1"
1320
1343
    }
1321
1344
    field_metadata {
1322
1345
      type: INTEGER
1332
1355
    end_segment: true
1333
1356
    record {
1334
1357
      insert_value: "1"
 
1358
      insert_value: "1"
 
1359
      is_null: false
 
1360
      is_null: false
 
1361
    }
 
1362
    record {
 
1363
      insert_value: "2"
 
1364
      insert_value: "2"
 
1365
      is_null: false
 
1366
      is_null: false
 
1367
    }
 
1368
    record {
 
1369
      insert_value: "3"
 
1370
      insert_value: "3"
 
1371
      is_null: false
 
1372
      is_null: false
 
1373
    }
 
1374
    record {
 
1375
      insert_value: "4"
 
1376
      insert_value: "4"
 
1377
      is_null: false
 
1378
      is_null: false
 
1379
    }
 
1380
    record {
 
1381
      insert_value: "5"
 
1382
      insert_value: "5"
 
1383
      is_null: false
 
1384
      is_null: false
 
1385
    }
 
1386
    record {
 
1387
      insert_value: "6"
 
1388
      insert_value: "6"
 
1389
      is_null: false
 
1390
      is_null: false
 
1391
    }
 
1392
    record {
 
1393
      insert_value: "7"
 
1394
      insert_value: "7"
 
1395
      is_null: false
 
1396
      is_null: false
 
1397
    }
 
1398
    record {
 
1399
      insert_value: "8"
 
1400
      insert_value: "8"
 
1401
      is_null: false
 
1402
      is_null: false
 
1403
    }
 
1404
    record {
 
1405
      insert_value: "9"
 
1406
      insert_value: "9"
 
1407
      is_null: false
 
1408
      is_null: false
 
1409
    }
 
1410
    record {
 
1411
      insert_value: "10"
 
1412
      insert_value: "10"
 
1413
      is_null: false
 
1414
      is_null: false
 
1415
    }
 
1416
    record {
 
1417
      insert_value: "11"
1335
1418
      insert_value: "100"
1336
1419
      is_null: false
1337
1420
      is_null: false
1338
1421
    }
1339
1422
    record {
1340
 
      insert_value: "2"
1341
 
      insert_value: "1000"
1342
 
      is_null: false
1343
 
      is_null: false
1344
 
    }
1345
 
    record {
1346
 
      insert_value: "3"
1347
 
      insert_value: "10"
1348
 
      is_null: false
1349
 
      is_null: false
1350
 
    }
1351
 
    record {
1352
 
      insert_value: "4"
1353
 
      insert_value: "50"
1354
 
      is_null: false
 
1423
      insert_value: "12"
 
1424
      insert_value: "101"
 
1425
      is_null: false
 
1426
      is_null: false
 
1427
    }
 
1428
  }
 
1429
}
 
1430
statement {
 
1431
  type: UPDATE
 
1432
  START_TIMESTAMP
 
1433
  END_TIMESTAMP
 
1434
  update_header {
 
1435
    table_metadata {
 
1436
      schema_name: "test"
 
1437
      table_name: "t1"
 
1438
    }
 
1439
    key_field_metadata {
 
1440
      type: INTEGER
 
1441
      name: "a"
 
1442
    }
 
1443
    set_field_metadata {
 
1444
      type: INTEGER
 
1445
      name: "b"
 
1446
    }
 
1447
  }
 
1448
  update_data {
 
1449
    segment_id: 1
 
1450
    end_segment: true
 
1451
    record {
 
1452
      key_value: "2"
 
1453
      after_value: "20"
 
1454
      is_null: false
 
1455
    }
 
1456
    record {
 
1457
      key_value: "4"
 
1458
      after_value: "40"
 
1459
      is_null: false
 
1460
    }
 
1461
    record {
 
1462
      key_value: "6"
 
1463
      after_value: "60"
 
1464
      is_null: false
 
1465
    }
 
1466
    record {
 
1467
      key_value: "8"
 
1468
      after_value: "80"
 
1469
      is_null: false
 
1470
    }
 
1471
    record {
 
1472
      key_value: "10"
 
1473
      after_value: "100"
 
1474
      is_null: false
 
1475
    }
 
1476
    record {
 
1477
      key_value: "11"
 
1478
      after_value: "1000"
1355
1479
      is_null: false
1356
1480
    }
1357
1481
  }