[wp-trac] [WordPress Trac] #13310: Extend option_name to varchar(255)

WordPress Trac noreply at wordpress.org
Thu Jun 12 04:46:14 UTC 2014


#13310: Extend option_name to varchar(255)
-----------------------------------+--------------------
 Reporter:  scribu                 |       Owner:  ryan
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  4.0
Component:  Database               |     Version:  3.4.2
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+--------------------

Comment (by archon810):

 Unbelievable that this ticket has now spent 4 years in discussions that
 went nowhere. I just ran into a bug that kept failing transients, and the
 culprit was the key name.

 At the very least, the set_transient function should error out altogether,
 with a message of some sort when the key is known to get truncated.

 I'm going to work on getting the keys smaller and I'll probably manually
 up the key length to 255.

 Btw, it was quite easy to run into this issue by adding a domain to the
 transient key name, along with a few more things. I only caught this
 problem after looking at the database data.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13310#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list