Skip to content

refactor data types - #3014

Merged
mickhansen merged 4 commits into
masterfrom
refactor-data-types
Feb 10, 2015
Merged

mickhansen merged 4 commits into
masterfrom
refactor-data-types

Conversation

@mickhansen

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/data-types.js

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.

God i hate this, but i don't see how we provide BC otherwise. We can't even create a property that maps to a method since the prop names will clash.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeh, can't really come up with a better solution her

@janmeier

janmeier commented Feb 2, 2015

Copy link
Copy Markdown
Member

Looking good, I think this will make it more clear

Comment thread test/integration/data-types.test.js Outdated

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.

Horrible defunkt, needs to be rewritten into a proper unit test.

@mickhansen mickhansen changed the title [WIP] refactor data types refactor data types Feb 9, 2015
@mickhansen

Copy link
Copy Markdown
Contributor Author

Please review @janmeier & @mbroadst

Comment thread lib/data-types.js Outdated

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.

what is the distinction between "_decimals" and "_precision"?

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.

@mbroadst one is for DECIMAL other is for FLOAT i think. Thats pure conversion from the old code

@mbroadst

mbroadst commented Feb 9, 2015

Copy link
Copy Markdown
Contributor

LGTM

Comment thread lib/sql-string.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the replace needed here? Shouldn't it already have the correct type?

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.

Good question, i probably haven't removed the weird replaces everywhere. But no it could probably be killed since the only difference is the TIMESTAMP replacement right?

mickhansen added a commit that referenced this pull request Feb 10, 2015
@mickhansen
mickhansen merged commit f5f58ec into master Feb 10, 2015
This was referenced Feb 10, 2015
@janmeier
janmeier deleted the refactor-data-types branch May 16, 2016 12:18
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