From d520d3ab602055853af1a06ff845f6db1a531c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Tisserant?= Date: Thu, 4 Jul 2019 16:24:07 +0200 Subject: [PATCH] Fix a case sensitivity issue when fetching the clustering order --- lib/cassandra/cluster/schema/fetchers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cassandra/cluster/schema/fetchers.rb b/lib/cassandra/cluster/schema/fetchers.rb index b20d9bb2c..fd33183d3 100644 --- a/lib/cassandra/cluster/schema/fetchers.rb +++ b/lib/cassandra/cluster/schema/fetchers.rb @@ -1361,7 +1361,7 @@ def create_table_options(table_data, compaction_strategy, is_compact) def create_column(column_data, types) name = column_data['column_name'] is_static = column_data['kind'].to_s.casecmp('STATIC').zero? - order = column_data['clustering_order'] == 'desc' ? :desc : :asc + order = column_data['clustering_order'].to_s.casecmp('DESC').zero? ? :desc : :asc if column_data['type'][0] == "'" # This is a custom column type. type = Types.custom(column_data['type'].slice(1, column_data['type'].length - 2))