title: SQLITE_RANGE: bind or column out of range for INSERT statement
body: <p>I want to insert rows into a SQLite3 table using the <code>knex.raw</code> method. Unfortunately I get a 'SQLITE_RANGE' error, which makes my test fail.
  I have verified the bindings passed to the raw query in the following fashion:</p>
  
  <ul>
  <li>They respect the order of the INSERT statement</li>
  <li>They respect the specified column types</li>
  <li>They respect the number of bindings requested in the raw query</li>
  </ul>
  
  <p>Beyond that I have looked online, but couldn't find a solution to my issue. Below are the details of the operation attempted:</p>
  
  <ul>
  <li><strong>Engine</strong>: <a href="https://github.com/mapbox/node-sqlite3" rel="nofollow noreferrer">sqlite3 ^3.1.13</a></li>
  <li><strong>SQL Client</strong>: <a href="http://knexjs.org" rel="nofollow noreferrer">knex ^0.14.4</a></li>
  <li><strong>Environment</strong>: <a href="https://github.com/chentsulin/electron-react-boilerplate" rel="nofollow noreferrer">electron ^1.7.11</a></li>
  </ul>
  
  <p>Error: </p>
  
  <pre><code>SQLITE_RANGE: bind or column index out of range errno: 25, code: 'SQLITE_RANGE'
  </code></pre>
  
  <p>Table definition:</p>
  
  <pre><code>-- --------------------------------------------------------
  
  --
  -- Table structure for table `ds13odba`
  --
  
  CREATE TABLE IF NOT EXISTS `ds13odba` (
    `SURGERY_CODE` VARCHAR(6) ,
    `TYPE` VARCHAR(1) ,
    `FP59STALIB` VARCHAR(6) ,
    `ID` INT UNSIGNED NOT NULL ,
    `createdAt` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
    `updatedAt` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL
  
  );
  
  -- --------------------------------------------------------
  </code></pre>
  
  <p>*Take note that the column types defined here are <em>affinity types</em>, i.e. MySQL types. These are valid in SQLite3 and are casted and optimized by the engine to their equivalent in SQLite3.</p>
  
  <p>Query:</p>
  
  <pre><code>INSERT INTO `ds13odba` (FP59STALIB, ID, SURGERY_CODE, TYPE) VALUES (?,?,?,?);
  INSERT INTO `ds13odba` (FP59STALIB, ID, SURGERY_CODE, TYPE) VALUES (?,?,?,?);
  INSERT INTO `ds13odba` (FP59STALIB, ID, SURGERY_CODE, TYPE) VALUES (?,?,?,?);
  </code></pre>
  
  <p>Bindings:</p>
  
  <pre><code>[ 
    '047202', 1, '000001', 'D',
    '047203', 2, '000002', 'D',
    '047204', 3, '000003', 'D' 
  ]
  </code></pre>
  
  <p>Calling code:</p>
  
  <pre><code>await knex.raw(...convertToInsertSQL(records));
  </code></pre>
  
  <p>Which resolves to:</p>
  
  <pre><code>await knex.raw(insertStatements.join('\n'), bindings);
  </code></pre>
  
  <p>Could you help me with this issue?</p>
  
  <p>Cheers </p>