WordPress database error: [Disk full (/tmp/#sql-temptable-1-261c50-1781.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]
SHOW FULL COLUMNS FROM `markjacobsen_options`

{"id":422,"date":"2013-12-11T14:17:09","date_gmt":"2013-12-11T14:17:09","guid":{"rendered":"http:\/\/visit.markjacobsen.net\/?p=422"},"modified":"2013-12-11T14:38:56","modified_gmt":"2013-12-11T14:38:56","slug":"db2-how-to-find-records-with-non-printable-characters-sqlstate-01517","status":"publish","type":"post","link":"https:\/\/markjacobsen.net\/2013\/12\/db2-how-to-find-records-with-non-printable-characters-sqlstate-01517\/","title":{"rendered":"DB2: How to find records with non-printable characters (SQLSTATE 01517)"},"content":{"rendered":"

If you run a select statement and get the following error… <\/p>\n

\"SQLSTATE 01517: A character that could not be converted was \r\nreplaced with a substitute character.\"<\/pre>\n

… you can use the TRANSLATE function to strip away printable chars, and compare that to a zero length string like so… <\/p>\n

SELECT * \r\nFROM XX.TBL \r\nWHERE TRANSLATE(UPPER(FIELD_X),'','ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=+\/\\{}[];:.,<>? ') <> '' \r\nFOR READ ONLY WITH UR;<\/code><\/pre>\nPlease remember to subscribe to the newsletter<\/a> to stay up to date!<\/i>\n\nYou or someone you know looking to buy or sell?<\/i>\n<\/a>\nDisclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...<\/small><\/i>","protected":false},"excerpt":{"rendered":"

If you run a select statement and get the following error… “SQLSTATE 01517: A character that could not be converted was replaced with a substitute character.” … you can use the TRANSLATE function to strip away printable chars, and compare that to a zero length string like so… SELECT * FROM XX.TBL WHERE TRANSLATE(UPPER(FIELD_X),”,’ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=+\/\\{}[];:.,? ‘) … Continue reading DB2: How to find records with non-printable characters (SQLSTATE 01517)<\/span> →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3],"tags":[22],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2UXeD-6O","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts\/422"}],"collection":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":3,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/posts\/422\/revisions\/425"}],"wp:attachment":[{"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/markjacobsen.net\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}