mirror of https://github.com/apache/cassandra
Fix assertion error when preparing query without parameters (binary protocol)
patch by Christoph Hack; reviewed by slebresne for CASSANDRA-4577
This commit is contained in:
parent
a9d4e649ff
commit
565f7e7802
|
|
@ -209,7 +209,7 @@ public class ResultSet
|
|||
public Metadata(List<ColumnSpecification> names)
|
||||
{
|
||||
this(EnumSet.noneOf(Flag.class), names);
|
||||
if (allInSameCF())
|
||||
if (!names.isEmpty() && allInSameCF())
|
||||
flags.add(Flag.GLOBAL_TABLES_SPEC);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue