Skip to content

Commit

Permalink
rm some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Sep 12, 2024
1 parent bbf05b9 commit d975aa8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/typegen/src/query/column-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ export const analyzeAST = async (

if (matchingQueryField && !matchingResult) {
// todo: see if we can do better than this. this is just falling back the output of `psql \gdesc`
// todo: watch out, we are matching the overall `describedQuery.fields` here, not necessarily this random CTE expression. there could be re-use of names and this would be wrong.
// todo: watch out also for `select count((a, b)) from foo`. that would be a view_column_usage and the data type would imply the wrong type
// for postgres 16+ we could use a pg_prepared_statement.result_types
return [
Expand Down
2 changes: 0 additions & 2 deletions packages/typegen/src/query/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ export const getAliasInfo = (statement: pgsqlAST.Statement): AliasInfo[] => {
}
}

// console.dir({expr}, {depth: null})

return []
}
}
Expand Down

0 comments on commit d975aa8

Please sign in to comment.