Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workload/schemachange: return error when a table has no columns
Previously, unexpected syntax errors would occur if the workload attempted to create an index on a table with no columns. For example, the workload would generate a statements such as `CREATE INDEX index2 ON table1 ()`, which are syntactically invalid. This change updates the function `getTableColumns` to return an error if a table has no columns to use when creating an index. The workload will try to generate another operation when it sees this error. Release note: None
- Loading branch information