-
Notifications
You must be signed in to change notification settings - Fork 55
Mysql disable array cast index #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughSupport for indexing array attributes was formalized across the database adapter interface and implementations. New abstract methods were introduced to declare support for array and cast index arrays. Control flow in the database and test code was updated to check these capabilities before performing related operations, ensuring compatibility across different adapters. Changes
Sequence Diagram(s)sequenceDiagram
participant TestSuite
participant Database
participant Adapter
TestSuite->>Database: createCollection / createIndex (with array attribute)
Database->>Adapter: getSupportForIndexArray()
Adapter-->>Database: true/false
alt Adapter supports array index
Database->>Database: Proceed with index creation
else Adapter does not support array index
Database->>Database: Throw IndexException
end
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings🧬 Code Graph Analysis (1)src/Database/Adapter/Pool.php (4)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
abnegate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let's add a patch script to drop all existing array-attribute indexes too
Revert "Merge pull request #627 from utopia-php/disable-array-index-m…
…mysql" This reverts commit 72c2a9c.
Summary by CodeRabbit
New Features
Bug Fixes
Tests