Files
mostlymatter/server
Jesse Hallam 594e8d3171 MM-62159: Avoid SELECT * in channel_store_categories.go (#30424)
* MM-62159: Avoid SELECT * in channel_store_categories.go

- Added sidebarCategorySelectQuery field to SqlChannelStore struct
- Replaced SELECT * with explicit column selection in GetSidebarCategory and getSidebarCategoriesT functions
- Updated raw SQL query in addChannelToFavoritesCategoryT to use explicit column selection
- Made the implementation more resilient to schema changes

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>

* use sc alias, simplify

* MM-62159: Fix ambiguous ID column in sidebar category queries

- Modified sidebarCategorySelectQuery initialization to explicitly use "sc" table alias for all columns
- Prevents "Column 'Id' in field list is ambiguous" error when joining with other tables

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>

* MM-62159: Consistently use table aliases in sidebar categories queries

- Added 'sc' table alias to all sidebar category queries
- Ensures consistency and avoids ambiguous column errors in future joins

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>

* MM-62159: Replace 'sc' alias with full 'SidebarCategories' table name

- Replaced all instances of the 'sc' alias with the full table name 'SidebarCategories'
- Updated the SidebarCategories query builder to use the full table name
- Removed commented-out debug printf statement

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-19 10:49:19 -03:00
..
2023-03-22 17:22:27 -04:00
2025-03-17 14:22:07 +01:00
2025-03-17 14:22:07 +01:00
2025-03-17 14:22:07 +01:00
2025-03-13 12:00:15 -04:00
2023-03-22 17:22:27 -04:00
2025-03-17 14:22:07 +01:00
2025-03-17 14:22:07 +01:00
2025-01-30 15:18:09 +01:00
2023-03-22 17:22:27 -04:00
2025-03-17 14:22:07 +01:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2025-03-17 14:22:07 +01:00
2025-02-06 21:48:08 +05:30
2025-03-17 14:22:07 +01:00
2024-05-15 12:05:13 -03:00