WPDB: Sanity check that any strings being stored in the DB are not too long to store correctly.

git-svn-id: https://develop.svn.wordpress.org/trunk@32299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2015-04-27 14:02:45 +00:00
parent ca8d6fb60f
commit 45b0abbef1
3 changed files with 141 additions and 0 deletions

View File

@@ -747,6 +747,7 @@ class Tests_DB extends WP_UnitTestCase {
'format' => '%s',
'charset' => $expected_charset,
'ascii' => false,
'length' => $wpdb->get_col_length( $wpdb->posts, 'post_content' ),
)
);