Skip to content

add ddl - #2621

Merged
fengttt merged 1 commit into
matrixorigin:mainfrom
daviszhen:0523-cci
May 23, 2022
Merged

add ddl#2621
fengttt merged 1 commit into
matrixorigin:mainfrom
daviszhen:0523-cci

Conversation

@daviszhen

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #2421

What this PR does / why we need it:

Not Available

Special notes for your reviewer:

Not Available

Additional documentation (e.g. design docs, usage docs, etc.):

Not Available

* update

* Surpport to run ddl successfully (#32)

* update

Co-authored-by: iamlinjunhong <[email protected]>
// get database name
if len(stmt.Table.SchemaName) == 0 {
createTable.Database = ctx.DefaultDatabase()
createTable.Database = ""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you can change to :

createTable.database = string(stmt.Table.SchemaName)

if we don't want to get default database.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will change back when DefaultDatabase() return right. Now, DefaultDatabase() will return "mo_catalog"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default database should be current database, that is, the one you connected to (use database).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iamlinjunhong Are you saying DafaultDatabase() has a bug or NYI, and we will revert to ctx.DefaultDatabase() once we fix DefaultDatabase? At least deserve a HUGE XXX comment.

@nnsgmsone
nnsgmsone removed their request for review May 23, 2022 08:45
@mergify mergify Bot added the reviewed label May 23, 2022
@fengttt
fengttt merged commit 4bf8c73 into matrixorigin:main May 23, 2022
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
* update

* Surpport to run ddl successfully (matrixorigin#32)

* update

Co-authored-by: iamlinjunhong <[email protected]>

Co-authored-by: iamlinjunhong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants