Navigation Menu

Skip to content

Commit

Permalink
[test][wrapper] specify also 'date' column value
Browse files Browse the repository at this point in the history
refs #1301
  • Loading branch information
kou committed Mar 7, 2012
1 parent b64ed42 commit c07c7a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Expand Up @@ -26,10 +26,11 @@ date title content
2012-03-05 00:00:00 rainy day Today is rainy day...
INSERT INTO diaries (date, title, content)
VALUES ("2012-03-04", "shopping", "I buy new shoes.")
ON DUPLICATE KEY UPDATE content = "I buy a new hat.";
ON DUPLICATE KEY UPDATE date = "2012-03-03",
content = "I buy a new hat.";
SELECT * FROM diaries;
date title content
2012-03-04 00:00:00 cloudy day Today is cloudy day...
2012-03-04 00:00:00 shopping I buy a new hat.
2012-03-03 00:00:00 shopping I buy a new hat.
2012-03-05 00:00:00 rainy day Today is rainy day...
DROP TABLE diaries;
Expand Up @@ -29,10 +29,11 @@ id date title content
3 2012-03-05 00:00:00 rainy day Today is rainy day...
INSERT INTO diaries (date, title, content)
VALUES ("2012-03-04", "shopping", "I buy new shoes.")
ON DUPLICATE KEY UPDATE content = "I buy a new hat.";
ON DUPLICATE KEY UPDATE date = "2012-03-03",
content = "I buy a new hat.";
SELECT * FROM diaries;
id date title content
1 2012-03-04 00:00:00 cloudy day Today is cloudy day...
2 2012-03-04 00:00:00 shopping I buy a new hat.
2 2012-03-03 00:00:00 shopping I buy a new hat.
3 2012-03-05 00:00:00 rainy day Today is rainy day...
DROP TABLE diaries;
Expand Up @@ -39,7 +39,8 @@ SELECT * FROM diaries;

INSERT INTO diaries (date, title, content)
VALUES ("2012-03-04", "shopping", "I buy new shoes.")
ON DUPLICATE KEY UPDATE content = "I buy a new hat.";
ON DUPLICATE KEY UPDATE date = "2012-03-03",
content = "I buy a new hat.";

SELECT * FROM diaries;

Expand Down
Expand Up @@ -40,7 +40,8 @@ SELECT * FROM diaries;

INSERT INTO diaries (date, title, content)
VALUES ("2012-03-04", "shopping", "I buy new shoes.")
ON DUPLICATE KEY UPDATE content = "I buy a new hat.";
ON DUPLICATE KEY UPDATE date = "2012-03-03",
content = "I buy a new hat.";
SELECT * FROM diaries;

DROP TABLE diaries;
Expand Down

0 comments on commit c07c7a5

Please sign in to comment.