title: psycopg2.DataError: invalid input syntax for integer: ""
body: <p>I am trying to insert data into a table. When I try to insert an empty string into a Textfield, I am getting the <code>invalid input syntax for integer</code> error message.</p>
  
  <p>Other textfields work fine with empty string.</p>
  
  <p>My code:</p>
  
  <pre><code>cur_p.execute("""
                  INSERT INTO a_recipient (created, mod, agreed, address, honor)
                  VALUES (current_timestamp, current_timestamp, current_timestamp, %s, %s)""", (None, None))
  </code></pre>
  
  <p><code>psycopg2.DataError: invalid input syntax for integer: ""
  LINE 35: ...                  '', ''..</code></p>
  
  <p>The code works fine if I remove the last <code>current_timestamp</code> in the values as well as the <code>agreed</code> but if I put it back, the error message re-appears.</p>
  
  <p>I checked other threads opened here in SO, I found this but the problem was about the values in array <a href="https://stackoverflow.com/questions/47945824/error-invalid-input-syntax-for-integer-for-a-non-integer">input error: integer</a></p>
  
  <p>Any advice?</p>