Repository navigation
fix: database and database usernames quoted to support hyphens in value - #1270
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughMariaDB and MySQL database commands now quote database names with backticks. Feature tests cover creating, deleting, and linking a database named ChangesDatabase identifier quoting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The intended hyphenated database-name behavior is covered, with no merge-blocking regression established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The focused quoting changes have no identified blocking issues, and shell verification supports correctness; project tests were not run.
0 open findings
What changed in this PR
Fixes #1250 by quoting database identifiers in MySQL and MariaDB SSH scripts so hyphenated names work correctly.
Changes:
- Adds shell-escaped backticks for database creation, deletion, and privilege updates.
- Adds MySQL regression tests for creating, deleting, and linking hyphenated databases.
| File | Description |
|---|---|
| tests/Feature/DatabaseUserTest.php | Tests linking a hyphenated database. |
| tests/Feature/DatabaseTest.php | Tests hyphenated database creation and deletion. |
| resources/views/ssh/services/database/mysql/link.blade.php | Quotes identifiers in privilege updates. |
| resources/views/ssh/services/database/mysql/delete.blade.php | Quotes identifiers when dropping databases. |
| resources/views/ssh/services/database/mysql/create.blade.php | Quotes identifiers when creating databases. |
| resources/views/ssh/services/database/mariadb/link.blade.php | Quotes identifiers in privilege updates. |
| resources/views/ssh/services/database/mariadb/delete.blade.php | Quotes identifiers when dropping databases. |
| resources/views/ssh/services/database/mariadb/create.blade.php | Quotes identifiers when creating databases. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Already allowed in Postgresql, so no updates required for those scripts. Looks like a solid improvement. |
Fixes issue #1250
Quotes the database name in order to support characters like a hyphen in the name.
Summary by CodeRabbit