Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@numtel
Copy link
Collaborator

@numtel numtel commented Mar 5, 2016

Here is my proposal for the next release version of ZongJi.

Main new feature is JSON data type support! 3342916 (More details) I think I've come up with every necessary test case for the crazy OPAQUE data type. 👍

I have bumped the version to 0.4.0 instead of 0.3.3 because of the breaking change regarding how blob types are now returned. 509cb6e Previously, BLOB/TEXT types would always output String values. This behavior matches node-mysql for TEXT types but BLOB values return Buffer. With this commit, the ZongJi behavior now matches node-mysql. Anybody depending on BLOB values to return String will from ZongJi will need to update their code to accept Buffer.

There is also a bugfix for the DECIMAL data type. Previously, values with leading zeros in the fractional decimal would have its leading zeros dropped. (e.g. 123.000123 became 123.123) This has now been fixed.

I have also included some commits from @jmealo's PR.

It would be nice to have automated tests for these commits 58fd776, aab7134, 30ce5c2 but I can't think of a way to do it without a test runner that creates MySQL accounts for each case to check permission failures.

Any comments? Am I missing anything?

numtel and others added 10 commits March 4, 2016 23:33
* Fixes DECIMAL type with leading zeros in decimal fraction
* Noticed that BLOB values return as String from ZongJi instead of as Buffer,
  like from node-mysql
* Type test cases now allow greater payloads
* Previously, all blob types returned String values. node-mysql only
  provides String values for TEXT (MEDIUMTEXT, LONGTEXT...) data types
  while BLOB data types return Buffer. By checking the charset property
  of the column, TEXT values are decoded into String.
* Breaking behavior change
* Values for affected columns will now show 'undefined'
* Tested manually by commenting out a type case in Common.readMysqlValue
…red while trying to read the information_schema
* Remove node engine restriction in package.json
* Update dependent packages

Fixes #27
Also fixes #32
@numtel numtel mentioned this pull request Mar 5, 2016
@jbruni
Copy link

jbruni commented Mar 5, 2016

I was going to mention #27 but I saw it has been updated at https://github.com/nevill/zongji/blob/0.4/package.json

So... thank you very much 👍

@nevill
Copy link
Owner

nevill commented Mar 6, 2016

Thanks for your efforts @numtel @jmealo, I will publish version 0.4.0 within one day if there is no comments on this issue (which means by default 😉 ).

nevill added a commit that referenced this pull request Mar 7, 2016
@nevill nevill merged commit 104e730 into master Mar 7, 2016
@nevill nevill deleted the 0.4 branch March 7, 2016 10:35
@nevill
Copy link
Owner

nevill commented Mar 7, 2016

Yeaah, v0.4.0 is published.

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.

5 participants