diff --git a/mysql-test/r/grant_cache.result b/mysql-test/r/grant_cache.result
index 0ffc48ad8797bf9d1259421c572b8e49c18c628b..c8ae0b4d9b33cdf3a8113408833bedda5de03c00 100644
--- a/mysql-test/r/grant_cache.result
+++ b/mysql-test/r/grant_cache.result
@@ -122,7 +122,7 @@ select "user4";
 user4
 user4
 select a from t1;
-ERROR 42000: No Database Selected
+ERROR 3D000: No Database Selected
 select * from mysqltest.t1,test.t1;
 a	b	c	a
 1	1	1	test.t1