Skip to content

Commit

Permalink
fix polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchwadair committed Jul 24, 2024
1 parent 1cb055f commit 7ec3901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drizzle-orm/src/singlestore-core/columns/geography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class SingleStoreGeography<T extends ColumnBaseConfig<'array', 'SingleSto
const points = ring.map((point) => sql`${point[0]} ${point[1]}`);
return sql`(${sql.join(points, sql.raw(', '))})`;
});
return sql`"POLYGON(${sql.join(rings, sql.raw(', '))})`;
return sql`"POLYGON(${sql.join(rings, sql.raw(', '))})"`;
}
} else {
throw new Error('value is not Array');
Expand Down
3 changes: 1 addition & 2 deletions drizzle-orm/src/singlestore-core/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export class SingleStoreTable<T extends TableConfig = TableConfig> extends Table
declare protected $columns: T['columns'];

/** @internal */
static override readonly Symbol = Object.assign({}, Table.Symbol, {
});
static override readonly Symbol = Object.assign({}, Table.Symbol, {});

/** @internal */
override [Table.Symbol.Columns]!: NonNullable<T['columns']>;
Expand Down

0 comments on commit 7ec3901

Please sign in to comment.