title: SQL query - "TypeError: sequence item 0: expected string, Decimal found" using the value
body: <p>I have connected to my DB successfully; I'm trying to run an sql query and get the 1st value of table into my result to use it further in my test steps. Now, I'm getting "TypeError: sequence item 0: expected string, Decimal found" error. Please suggest valuable ideas on how to get a single value from the DB table and put it in the screen field to proceed with test case execution.</p>
  
  <p>Please note, all are integer type values in my sql query result but still I don't know why the system says decimal found.</p>
  
  <p>Below is my code:</p>
  
  <blockquote>
  <pre><code>Connect to Database   pymssql  DBNAME  UNAME  PWD  PORTNO 
  ${QueryResult}= Query SelectQuery                             
  Log  ${QueryResult[0]}              
  Inputtext  id  ${QueryResult[0]}
  </code></pre>
  </blockquote>
  
  <p>The output of my log keyword is <code>(Decimal('2'),)</code> which is supposed to be a table value of 2.</p>
  
  <p>After this the system tries to input  <code>(Decimal('2'),)</code> into the field and above said error is thrown.</p>