Skip to content

KBC-2780 basetype to type mapping#58

Merged
jirkasemmler merged 1 commit intomasterfrom
mj-KBC-2780-basetype-to-type
Jul 14, 2022
Merged

KBC-2780 basetype to type mapping#58
jirkasemmler merged 1 commit intomasterfrom
mj-KBC-2780-basetype-to-type

Conversation

@martinjunger
Copy link
Copy Markdown
Contributor

Jira: KBC-2780

@martinjunger martinjunger force-pushed the mj-KBC-2780-basetype-to-type branch from 567b505 to 740ec6b Compare July 12, 2022 05:36
Comment thread src/Definition/Exasol.php Outdated
case BaseType::INTEGER:
return new self(self::TYPE_INTEGER);
case BaseType::NUMERIC:
return new self(self::TYPE_DECIMAL, ['length' => '36,36']);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mozna by to nemuselo vracet celou instanci (kvuli defaulltni delce), ale jen type jako string?
Jak na tim znova premyslim, tak asi bude lepsi vracet jen ten string...

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.

puvodne jsem si taky myslel, ze bude fajn vracet string, ale ten UC, ktery mame na stole rika, ze chceme instanci, ne si to pak rucne tvorit v connection. Takze bych to nechal tak

Jen prosim na ty delky pouzij vyse uvedene konstanty. Zrovna ten numeric jsem nedavno upravoval

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tyhle hodnoty byly z toho kodu UI a prislo mi to jako rozumny, mit to stejny. Ale zase kdyz mame "svoje" defaulty, tak OK.

Copy link
Copy Markdown
Contributor

@jirkasemmler jirkasemmler left a comment

Choose a reason for hiding this comment

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

par malickosti

Comment thread src/Definition/Exasol.php Outdated
Comment thread src/Definition/Exasol.php Outdated
case BaseType::INTEGER:
return new self(self::TYPE_INTEGER);
case BaseType::NUMERIC:
return new self(self::TYPE_DECIMAL, ['length' => '36,36']);
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.

puvodne jsem si taky myslel, ze bude fajn vracet string, ale ten UC, ktery mame na stole rika, ze chceme instanci, ne si to pak rucne tvorit v connection. Takze bych to nechal tak

Jen prosim na ty delky pouzij vyse uvedene konstanty. Zrovna ten numeric jsem nedavno upravoval

Comment thread src/Definition/Snowflake.php Outdated
Comment thread src/Definition/Snowflake.php Outdated
Comment thread src/Definition/Synapse.php Outdated
@jirkasemmler
Copy link
Copy Markdown
Contributor

@martinjunger asi bych byl pro to prepsat do konverze (string) BASETYPE -> (string) TYPE. Tzn nevracet instanci, ale jen nazev typu. Jak rikas, stejne se to v connection pak vytahuje. A nemusime se pak zabyvat temi defaultnimi delkami

@martinjunger
Copy link
Copy Markdown
Contributor Author

to prepsat do konverze (string) BASETYPE -> (string) TYPE

Prepsano.

@jirkasemmler jirkasemmler force-pushed the mj-KBC-2780-basetype-to-type branch from c04ba77 to 1014bb3 Compare July 14, 2022 07:49
@jirkasemmler jirkasemmler merged commit 2589844 into master Jul 14, 2022
@jirkasemmler jirkasemmler deleted the mj-KBC-2780-basetype-to-type branch July 14, 2022 07:58
tomasfejfar pushed a commit that referenced this pull request Sep 14, 2022
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.

2 participants