{"id":71,"date":"2008-10-10T13:38:11","date_gmt":"2008-10-10T19:38:11","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=71"},"modified":"2008-10-10T13:38:47","modified_gmt":"2008-10-10T19:38:47","slug":"another-parting-shot","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=71","title":{"rendered":"Another Parting Shot"},"content":{"rendered":"<p>Related to that last quiz. Here&#8217;s the SHOW CREATE TABLE output &#8211; I&#8217;ve only cleaned up the whitespace.<\/p>\n<pre>CREATE TABLE `t1` (\r\n  `id` int(11) DEFAULT NULL\r\n) ENGINE=MyISAM DEFAULT CHARSET=latin1 \r\n\/*!50100 PARTITION BY RANGE (id) (\r\n  PARTITION p0 VALUES LESS THAN (100) \r\n    ENGINE = MyISAM, \r\n  PARTITION p1 VALUES LESS THAN MAXVALUE \r\n    DATA DIRECTORY = '~\/mysql\/data\/' \r\n    ENGINE = MyISAM\r\n) *\/<\/pre>\n<p>Now, pay close attention to the rows inserted:<\/p>\n<pre>mysql> INSERT INTO t1 VALUES (100);\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nmysql> SELECT COUNT(*) FROM t1;\r\n+----------+\r\n| COUNT(*) |\r\n+----------+\r\n|        1 |\r\n+----------+\r\n1 row in set (0.00 sec)<\/pre>\n<p>Ok, here&#8217;s the tricky bit:<\/p>\n<pre>mysql> SELECT * FROM t1;\r\nEmpty set (0.00 sec)<\/pre>\n<p>No triggers, no BLACKHOLE, no Proxy, no events or other scheduled tasks, no other connections deleting rows, no temporary tables, and I have all the necessary privileges (including to the data directory shown, which exists and isn&#8217;t full). It&#8217;s all MyISAM, so surely no transactions. No errors or warnings have been reported.<\/p>\n<p>When you figure it out, don&#8217;t do it in your production environment. Bad things happen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related to that last quiz. Here&#8217;s the SHOW CREATE TABLE output &#8211; I&#8217;ve only cleaned up the whitespace. CREATE TABLE `t1` ( `id` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 \/*!50100 PARTITION BY RANGE (id) ( PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, PARTITION p1 VALUES LESS THAN MAXVALUE DATA DIRECTORY = &#8216;~\/mysql\/data\/&#8217; [&hellip;]<\/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,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-gotchas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-19","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}