FTS5 virtual table require at least one column

This commit is contained in:
Gwendal Roué committed 2016-10-06 08:28:05 +02:00
1 parent 32e0151f7d
commit 578b899653
1 file changed
+4
+4
View File
@@ -35,6 +35,10 @@
public func moduleArguments(_ definition: FTS5TableDefinition) -> [String] {
var arguments: [String] = []
if definition.columns.isEmpty {
fatalError("FTS5 virtual table requires at least one column.")
}
for column in definition.columns {
if column.isIndexed {
arguments.append("\(column.name)")