title: Postgres query fails in sequelize
body: <p>From my nodejs application I run this line:</p>
  
  <pre><code>return models.sequelize.query("INSERT INTO \"DelegateUserLinks\" VALUES 
  (" + id + "," + _user.id + ", '2019-01-10 13:06:41.920', '2019-01-10 
  13:06:41.920')", function(err){
              return Promise.reject(err);
          });
  </code></pre>
  
  <p>This fails. I dont really understand why. Reading the error log the error has the code <code>22P02</code>.
  What I understand, the error code means there is a failure when converting a datatype to integer.
  But I cannot see Im having this issue (looking at the query). The query itself (printed in the error log) seems allright in my eyes:</p>
  
  <pre><code>INSERT INTO \"DelegateUserLinks\" VALUES (10,677, '2019-01-10 13:06:41.920', '2019-01-10 13:06:41.920')"
  </code></pre>
  
  <p>If the issue is casting from datatype to integer, I see that the number  <code>10</code> and <code>677</code> are written in the query as pure integers. So what is the real problem? Im also hard coding the dates to be sure the problem is not there. This is the full error log:</p>
  
  <pre><code>{"name":"SequelizeDatabaseError","parent":{"name":"error","length":117,"severity":"ERROR","code":"22P02","position":"49","file":"numutils.c","line":"104","routine":"pg_atoi","sql":"INSERT INTO \"DelegateUserLinks\" VALUES (10,677, '2019-01-10 13:06:41.920', '2019-01-10 13:06:41.920')"},"original":{"name":"error","length":117,"severity":"ERROR","code":"22P02","position":"49","file":"numutils.c","line":"104","routine":"pg_atoi","sql":"INSERT INTO \"DelegateUserLinks\" VALUES (10,677, '2019-01-10 13:06:41.920', '2019-01-10 13:06:41.920')"},"sql":"INSERT INTO \"DelegateUserLinks\" VALUES (10,677, '2019-01-10 13:06:41.920', '2019-01-10 13:06:41.920')","error@context":{}}
  </code></pre>