| List: | Commits | « Previous MessageNext Message » | |
| From: | Alexander Barkov | Date: | May 5 2009 1:15pm |
| Subject: | Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | ||
| View as plain text | |||
Hi Øystein, Alexander Barkov wrote: <skip> >> > >> > >> > @@ -324,7 +327,7 @@ public: >> > double val_real(); >> > String *val_str(String*str); >> > enum Item_result result_type () const { return INT_RESULT; } >> > - void fix_length_and_dec() {} >> > + void fix_length_and_dec() { set_char_length_and_dec(21); } >> > }; >> > >> >> Why do you need to set this when it is set in the constructor of the >> parent class? >> >> By the way, lot's of fix_length_and_dec functions uses hard-coded >> constants. Why not use the constructor instead? > > Thank for noticing this. This change is not needed. Removed. Oops. Tests started to fail after reverting this change. Without this line, charset is not set to @@character_set_connection, so it returns BINARY(21) instead of VARCHAR(21). We do need this call. But the methods names are really confusing. They also set charset/collation. Hmm. Should I rename the methods to: set_charset_and_char_length() and set_charset_and_char_length_and_dec() ? Sounds cumbersome :( <skip>
| Thread | ||
|---|---|---|
| • bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Alexander Barkov | 4 Mar |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Øystein Grøvlen | 24 Apr |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Alexander Barkov | 29 Apr |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Øystein Grøvlen | 5 May |
| • WL#2649 | Alexander Barkov | 19 Jun |
| • Re: WL#2649 | Øystein Grøvlen | 25 Jun |
| • Re: WL#2649 | Alexander Barkov | 25 Jun |
| • Re: WL#2649 | Øystein Grøvlen | 25 Jun |
| • Re: WL#2649 | Peter Gulutzan | 29 Jun |
| • Re: WL#2649 | Øystein Grøvlen | 1 Jul |
| • Re: WL#2649 | Peter Gulutzan | 2 Jul |
| • Re: WL#2649 | Øystein Grøvlen | 3 Jul |
| • Re: WL#2649 | Peter Gulutzan | 15 Jul |
| • Re: WL#2649 | Alexander Barkov | 20 Aug |
| • Re: WL#2649 | Alexander Barkov | 20 Aug |
| • Re: WL#2649 | Øystein Grøvlen | 21 Aug |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Alexander Barkov | 5 May |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Alexander Barkov | 5 May |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Øystein Grøvlen | 6 May |
| • Re: bzr commit into mysql-6.0 branch (bar:2701) WL#2649 | Øystein Grøvlen | 6 May |
