Menu

#3578 (ok 4.0.5) Transformations for text/plain on a BLOB column

Latest_Git_snapshot
fixed
1
2013-08-04
2012-04-23
Jean-Ro
No

When I have a field with Type BLOB, I add MIME type = text/plain and Transformation = "text/plain: substr",
but when I browse the table, it shows "[BLOB - nnnB]" in place of the text value.

I tested this with several versions including the latest one (2012-04-23).

I think it should modify the file libraries/display_tbl.lib.php, replacing the line (about #2746 in the latest relase)
if (strpos($transform_function, 'octetstream')) {
by
if (strpos($transform_function, 'octetstream') || strpos($transform_function, '_text_')) {

Thanks

Discussion

  • Marc Delisle

    Marc Delisle - 2012-04-30

    phpMyAdmin assumes that when you are using a BLOB type for a column, you do not intend to put text in it.

     
  • Marc Delisle

    Marc Delisle - 2012-04-30
    • status: open --> pending
     
  • Jean-Ro

    Jean-Ro - 2012-04-30
    • status: pending --> open
     
  • Jean-Ro

    Jean-Ro - 2012-04-30

    I do this for performance reasons,
    to avoid treatments related to the charset and case comparisons.

    My database has to handle 300 requests per second on average over a year.

    I do not understand the use of transformations text/plain in this case.

     
  • Marc Delisle

    Marc Delisle - 2013-07-27
    • summary: transformations for text/plain don't work fine --> transformations for text/plain on a BLOB column
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-07-27
    • summary: transformations for text/plain on a BLOB column --> (ok 4.0.5) Transformations for text/plain on a BLOB column
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2013-08-04
    • status: resolved --> fixed