Skip to content

Commit

Permalink
fix: Support names with no qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
KDB223 committed May 12, 2023
1 parent 2af973f commit 083c619
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/mutation.ts
Expand Up @@ -381,7 +381,15 @@ export class Mutation {
*/
static parseColumnName(columnName: string): ParsedColumn {
const colonIdx = columnName.indexOf(':');


if (colonIdx == -1) {
// columnName does not contain ':'
return {
family: columnName,
qualifier: undefined,
};
}

return {
family: columnName.slice(0, colonIdx),
qualifier: columnName.slice(colonIdx + 1),
Expand Down

0 comments on commit 083c619

Please sign in to comment.