Created
January 28, 2014 04:59
-
-
Save yoku0825/8662501 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SELECT * FROM t1; | |
+-----+------+ | |
| num | val | | |
+-----+------+ | |
| 1 | one | | |
| 2 | two | | |
| 3 | tree | | |
+-----+------+ | |
3 rows in set (0.00 sec) | |
mysql> SELECT * FROM t2; | |
+-----+------+ | |
| num | val | | |
+-----+------+ | |
| 1 | eins | | |
| 2 | zwei | | |
| 3 | drei | | |
| 4 | vier | | |
+-----+------+ | |
4 rows in set (0.00 sec) | |
mysql> | |
mysql> SELECT * FROM t1 RIGHT JOIN t2 USING(num); | |
+-----+------+------+ | |
| num | val | val | | |
+-----+------+------+ | |
| 1 | eins | one | | |
| 2 | zwei | two | | |
| 3 | drei | tree | | |
| 4 | vier | ( ゚ д ゚ ) | | |
+-----+------+------+ | |
4 rows in set (0.00 sec) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** client/mysql.cc.orig 2014-01-15 18:25:45.547811486 +0900 | |
--- client/mysql.cc 2014-01-28 13:49:26.228813696 +0900 | |
*************** | |
*** 3752,3759 **** | |
if (cur[off] == NULL) | |
{ | |
! buffer= "NULL"; | |
! data_length= 4; | |
} | |
else | |
{ | |
--- 3752,3759 ---- | |
if (cur[off] == NULL) | |
{ | |
! buffer= "( ゚ д ゚ )"; | |
! data_length= 14; | |
} | |
else | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment