[Tarantool-patches] [PATCH] sql: fix pragma collation_list

Chris Sosnin k.sosnin at tarantool.org
Sun Dec 29 15:27:32 MSK 2019


This short patch fixes the bug when user
is unable to see the list of collations via sql.

Closes #4713
---
 src/box/sql/pragma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/sql/pragma.c b/src/box/sql/pragma.c
index 00ecde0a9..b8d761478 100644
--- a/src/box/sql/pragma.c
+++ b/src/box/sql/pragma.c
@@ -501,7 +501,7 @@ sqlPragma(Parse * pParse, Token * pId,	/* First part of [schema.]id field */
 
 	case PragTyp_COLLATION_LIST:{
 		int i = 0;
-		struct space *space = space_by_name("_collation");
+		struct space *space = space_by_name("_vcollation");
 		char key_buf[16]; /* 16 is enough to encode 0 len array */
 		char *key_end = key_buf;
 		key_end = mp_encode_array(key_end, 0);
-- 
2.21.0 (Apple Git-122.2)



More information about the Tarantool-patches mailing list