title: maria db insert or update
body: <p>I have the following sql code:</p>
  
  <pre><code>UPDATE google_calendar_accounts SET google_refresh_token="d",google_org_token="d" WHERE userID=5;
  IF ROW_COUNT()=0 THEN
  INSERT INTO google_calendar_accounts (userID,google_refresh_token,google_org_token) VALUES (5,"d","d"); END IF
  </code></pre>
  
  <p>and I am getting the error:</p>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 2 </p>
  </blockquote>
  
  <p>I am using mariadb 10.1.14</p>