Skip to content

Commit 575d231

Browse files
Updated:
- Formatted with dprint mysql select/ select.types files
1 parent 2bcd578 commit 575d231

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drizzle-orm/src/mysql-core/query-builders/select.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class MySqlSelectBuilder<
8989
from<TFrom extends MySqlTable | Subquery | MySqlViewBase | SQL>(
9090
source: TFrom,
9191
onIndex?: TFrom extends MySqlTable ? IndexConfig
92-
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views.',
92+
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views',
9393
): CreateMySqlSelectFromBuilderMode<
9494
TBuilderMode,
9595
GetSelectTableName<TFrom>,
@@ -229,7 +229,7 @@ export abstract class MySqlSelectQueryBuilderBase<
229229
table: MySqlTable | Subquery | MySqlViewBase | SQL,
230230
on: ((aliases: TSelection) => SQL | undefined) | SQL | undefined,
231231
onIndex?: TJoinedTable extends MySqlTable ? IndexConfig
232-
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views.',
232+
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views',
233233
) => {
234234
const baseTableName = this.tableName;
235235
const tableName = getTableLikeName(table);

drizzle-orm/src/mysql-core/query-builders/select.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ export type MySqlJoinFn<
122122
>(
123123
table: TJoinedTable,
124124
on: ((aliases: T['_']['selection']) => SQL | undefined) | SQL | undefined,
125-
onIndex?: TJoinedTable extends MySqlTable ? IndexConfig : 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views.',
125+
onIndex?: TJoinedTable extends MySqlTable ? IndexConfig
126+
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views',
126127
) => MySqlJoin<T, TDynamic, TJoinType, TJoinedTable, TJoinedName>;
127128

128129
export type SelectedFieldsFlat = SelectedFieldsFlatBase<MySqlColumn>;

0 commit comments

Comments
 (0)