Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH] sql: fix pragma collation_list
@ 2019-12-29 12:27 Chris Sosnin
  0 siblings, 0 replies; only message in thread
From: Chris Sosnin @ 2019-12-29 12:27 UTC (permalink / raw)
  To: tarantool-patches

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-29 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-29 12:27 [Tarantool-patches] [PATCH] sql: fix pragma collation_list Chris Sosnin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox