<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic query string with quotes fails on integer fields in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149344#M4091</link>
    <description>&lt;P&gt;At 10.8 I was using a where clause with quotes around values that queried integer columns.&amp;nbsp; I also used a where clause for example, Date = '2024-01-01'.&amp;nbsp; &amp;nbsp;These queries worked fine.&amp;nbsp; Since we have moved out testing environment to 10.9, the where clause no longer works with quotes if querying an integer field, and I had to add DATE before the date for the where clause to work.&amp;nbsp; I can't find any documentation about changes that caused the malfunction.&amp;nbsp; Does anyone have any insights into the where clause changes for the 10.9 arcgis rest api?&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 22:11:44 GMT</pubDate>
    <dc:creator>ChrisWiebke</dc:creator>
    <dc:date>2022-03-01T22:11:44Z</dc:date>
    <item>
      <title>query string with quotes fails on integer fields</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149344#M4091</link>
      <description>&lt;P&gt;At 10.8 I was using a where clause with quotes around values that queried integer columns.&amp;nbsp; I also used a where clause for example, Date = '2024-01-01'.&amp;nbsp; &amp;nbsp;These queries worked fine.&amp;nbsp; Since we have moved out testing environment to 10.9, the where clause no longer works with quotes if querying an integer field, and I had to add DATE before the date for the where clause to work.&amp;nbsp; I can't find any documentation about changes that caused the malfunction.&amp;nbsp; Does anyone have any insights into the where clause changes for the 10.9 arcgis rest api?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 22:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149344#M4091</guid>
      <dc:creator>ChrisWiebke</dc:creator>
      <dc:date>2022-03-01T22:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: query string with quotes fails on integer fields</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149404#M4092</link>
      <description>&lt;P&gt;Usually these differences are caused by the requirements of the underlying database the query is being run against, but if that is the same in both the development and the production environments, then it might be because the 10.9 REST API uses the SQL-92 standard (see second image below.&amp;nbsp; It doesn't talk specifically about the REST API, but it mentions the 'date' keywork being required by SQL-92).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm#GUID-85C03D85-F4A5-48FC-8E8C-3F79919430DB" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm#GUID-85C03D85-F4A5-48FC-8E8C-3F79919430DB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1646183335429.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35311i5F45424912BE7748/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1646183335429.png" alt="KimGarbade_0-1646183335429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;file geodatabase use the "date" syntax&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1646183421373.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35312i76DF9A23FD7AE577/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1646183421373.png" alt="KimGarbade_1-1646183421373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With regard to the integer queries... never heard of one working with quotes unless its stored as text in the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 01:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149404#M4092</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-03-02T01:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: query string with quotes fails on integer fields</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149536#M4093</link>
      <description>&lt;P&gt;To add another to &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/119500"&gt;@KimberlyGarbade&lt;/a&gt; 's excellent post, we also noticed from 10.8.1 to 10.9 that our queries required the format "timestamp 'yyyy-mm-dd'", where before, the word "timestamp" was not necessary. I suspect that the underlying DB in the portal changes between versions.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 13:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-string-with-quotes-fails-on-integer-fields/m-p/1149536#M4093</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-03-02T13:34:53Z</dc:date>
    </item>
  </channel>
</rss>

