Skip to content
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

[Bug]: Project name the same as database name #7365

Closed
ea-rus opened this issue Sep 19, 2023 · 0 comments · Fixed by #9127
Closed

[Bug]: Project name the same as database name #7365

ea-rus opened this issue Sep 19, 2023 · 0 comments · Fixed by #9127
Assignees
Labels
bug Something isn't working Team: SQL & Text2SQL Anything related to the text-to-SQL project

Comments

@ea-rus
Copy link
Contributor

ea-rus commented Sep 19, 2023

Short description of current behavior

It is possible to create project with the name as already existed database. And vice versa: create database with name of the project. It leads to unexpected behavior and error in mindsdb server

Related to mindsdb/mindsdb_python_sdk#72

Video or screenshots

image

Expected behavior

Need to check the name of project or database before creation of them.

How to reproduce the error

CREATE DATABASE example_db
WITH ENGINE = "postgres",
PARAMETERS = {
    "user": "demo_user",
    "password": "demo_password",
    "host": "3.220.66.106",
    "port": "5432",
    "database": "demo"
    };

create project example_db;

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team: SQL & Text2SQL Anything related to the text-to-SQL project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants