#787 (in 2.5.0) Charset conversion breaks binary data

Latest_Git
fixed
1
2013-06-11
2003-03-18
No

We should avoid somehow converting binary data in
PMA_mysql_fetch_array. PMA_mysql_fetch_array converts
charset of transfered data (when needed) and this
definitely breaks all binary fields. Any nice idea how
to do this?

Discussion

  • Alexander M. Turek

    • priority: 5 --> 7
     
  • Michal Čihař

    Michal Čihař - 2003-03-20

    Logged In: YES
    user_id=192186

    As we IMHO always know how will data look like before
    actually getting them, I would preffer adding some parameter
    (array) to PMA_mysql_fetch_array, that would specify which
    fields shouldn't be converted (BINARY and BLOB). Would be
    this solution acceptable?

     
  • Michal Čihař

    Michal Čihař - 2003-03-20
    • assigned_to: nobody --> nijel
     
  • Garvin Hicking

    Garvin Hicking - 2003-03-20

    Logged In: YES
    user_id=473563

    Nijel,

    Could'nt we use the $meta (mysql_fetch_field) information of
    a field, whether $meta->is_binary is set, or evaluate the
    $meta->type of that? This would mean an additional
    mysql_fetch_field call to each result set, but we could only do
    that if character conversion is enabled.

     
  • Michal Čihař

    Michal Čihař - 2003-03-20

    Logged In: YES
    user_id=192186

    Should be now fixed in CVS, please test it. Thanks to garvin
    for showing way to go :-).

     
  • Michal Čihař

    Michal Čihař - 2003-03-20
    • priority: 7 --> 1
    • status: open --> open-fixed
     
  • Michal Čihař

    Michal Čihař - 2003-03-24
    • summary: (2.5.0-dev) Charset conversion breaks binary data --> (in 2.5.0) Charset conversion breaks binary data
     
  • Alexander M. Turek

    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed