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

New (compact) DECIMAL format support at create_defs.pl and print_data.c #5

Open
GoogleCodeExporter opened this issue Mar 29, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I needed some changes to treat DECIMAL by innodb-recovery-0.3.tar.gz

In the output of create_defs.pl,
I think the (NEW)DECIMAL field has not enough information.

 1. type: FT_CHAR  should be  FT_DECIMAL

 2. decimal_precision: and decimal_digits:


In addition, the space padded output may be verbose in some cases.
So, I have changed print_data.c as,
    bin2decimal((char*)value, &dec, field->decimal_precision,
field->decimal_digits);
//    decimal2string(&dec, string_buf, &len, field->decimal_precision,
field->decimal_digits, ' ');
    decimal2string(&dec, string_buf, &len, 0,0,0);
    print_string(string_buf, len, field);

Best regards,
Yasufumi

Original issue reported on code.google.com by [email protected] on 16 Dec 2008 at 4:58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant