title: Checking for res 'status' in Query Call for MariaDB
body: <p>I am rewriting some Node code to execute SQL queries via a MariaDB connector instead over via SQL Anywhere, and I'm trying to determine what response property I can latch onto to replicate the code we had before. </p>
  
  <p>The old code looked like this:</p>
  
  <pre><code>  sybase.query("SELECT * FROM cc_customers WHERE ex_id = ?",
                  [transaction.ex_id], function (result) {
      if (result.status != 'success') {
        connPoolSize++;
        transactionsLeftToProcess--;
  
        return;
      }...
  </code></pre>
  
  <p>Notice how we're making use of <code>result.status</code> when running a query via SQL Anywhere to a Sybase db. Now in MariaDB I'm wondering what gets returned as part of the respond that we can use to replicate this conditional check. In the documentation (<a href="https://mariadb.com/kb/en/library/connector-nodejs-promise-api/#connectionquerysql-values-promise" rel="nofollow noreferrer">https://mariadb.com/kb/en/library/connector-nodejs-promise-api/#connectionquerysql-values-promise</a>) I see reference to <code>res</code> and to <code>rows</code> being available as part of the response, but I'm not clear if <code>status</code>, or something equivalent (a status code?) gets returned as part of <code>res</code> on the query call. What properties are returned that I can use in this case?</p>