title: Cannot insert WKB to POINT column in MySQL
body: <p>I'm building a Node.js app that manages points of interest in my area. I insert POIs by converting latlong coordinates using <code>wkx</code> into a WKB buffer which is then inserted into a <code>POINT</code> column in MySQL. The query is built with Knex.js. Here's how the query look like:</p>
  
  <pre><code>INSERT INTO `places` (`name`, `coordinate`)
      VALUES ('Null Island', X'00000000010100000000000000000000000000000000000000')
  </code></pre>
  
  <p>It throws out <code>Cannot get geometry object from data you send to the GEOMETRY field</code>.</p>
  
  <p>I tinkered with it so it becomes this:</p>
  
  <pre><code>INSERT INTO `places` (`name`, `coordinate`)
      VALUES ('Null Island', UNHEX('00000000010100000000000000000000000000000000000000'))
  </code></pre>
  
  <p>But it still doesn't work. I finally get it to work only by using <code>ST_GEOMFROMTEXT(0 0)</code>. And it works even if I screw it around like this:</p>
  
  <pre><code>INSERT INTO `places` (`name`, `coordinate`)
      VALUES ('Null Island', UNHEX(HEX(ST_GEOMFROMTEXT('POINT(0 0)')))
  </code></pre>
  
  <p>What's wrong? How can I make it work directly from buffer?
  I suspect my problem is similar with <a href="https://stackoverflow.com/questions/34311195/mysql-import-cannot-get-geometry-object-from-data-you-send-to-the-geometry-fiel">this one</a>.</p>