mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibSQL: Remove Core::EventReceiver parent from SQL::Relation
This relationship was only used to provide a name, factory methods, and parent-child relationships for the relations.
This commit is contained in:
parent
5ad78cab8d
commit
3ea4c56d04
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/trflynn89
Commit: 3ea4c56d04
Pull-request: https://github.com/SerenityOS/serenity/pull/20411
Reviewed-by: https://github.com/gmta ✅
6 changed files with 76 additions and 51 deletions
|
@ -12,7 +12,7 @@ namespace SQL::AST {
|
|||
|
||||
ResultOr<ResultSet> CreateSchema::execute(ExecutionContext& context) const
|
||||
{
|
||||
auto schema_def = SchemaDef::construct(m_schema_name);
|
||||
auto schema_def = TRY(SchemaDef::create(m_schema_name));
|
||||
|
||||
if (auto result = context.database->add_schema(*schema_def); result.is_error()) {
|
||||
if (result.error().error() != SQLErrorCode::SchemaExists || m_is_error_if_schema_exists)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue