<?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 Re: CAST does not work in SearchCursor Queries? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264327#M20365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a python in_memory table (not a FC)&amp;nbsp;which in my experience acts just like a GDB.&amp;nbsp; When I make a test copy into a GDB and use my cast query in a Definition Query it works great.&amp;nbsp; Which should simulate the interface directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried int, INT, Interger, INTEGER, SHORTINT, and a few others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 16:52:59 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2018-07-18T16:52:59Z</dc:date>
    <item>
      <title>CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264322#M20360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought a found a slick way to compare on a number in&amp;nbsp;a string field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAST(SoilDepthLower AS INTEGER) &amp;lt; 70&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works in a ArcMap definition query just fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to use it in a SearchCursor Query it says Invalid SQL Statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whereClause = "CAST(SoilDepthLower AS INTEGER) &amp;lt; 70"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keyField1 = arcpy.ListFields(tableLayer)[1].name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keyField2 = arcpy.ListFields(tableLayer)[2].name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldList = ["SoilDepthLower", keyField1, keyField2]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(tableLayer, fieldList, whereClause) as cursor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried smallint, double, etc - using both&amp;nbsp;uppercase and lower case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This help page says it is supported&amp;nbsp; &lt;A href="http://pro.arcgis.com/en/pro-app/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm"&gt;http://pro.arcgis.com/en/pro-app/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 21:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264322#M20360</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-07-17T21:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264323#M20361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cast replacements can be replace somewhat with 'isinstance' but normally you would have to use a full def to check for contents of the field, but this will give you an idea.&amp;nbsp; You would have to add the quote thingys to make it a query string, but you can see the idea for a check&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"40"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;30&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"20"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"{} &amp;lt; 70"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;isinstance&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN class="number token"&gt;40&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;70&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;30&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;70&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;70&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;70&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;70&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so 'i' in the above would simply be the fieldname (in ! ! )and you would skip the print of course.&amp;nbsp; There a lots of cavaets to this however.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"1.23"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

&amp;nbsp; File &lt;SPAN class="string token"&gt;"&amp;lt;ipython-input-24-84a3541b8dc8&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"1.23"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

ValueError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; invalid literal &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; base &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'1.23'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264323#M20361</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264324#M20362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of ArcMap are you using?&amp;nbsp; I just created a search cursor in ArcMap 10.6 and ArcGIS Pro 2.2 on file geodatabase table using CAST in the WHERE clause, and it worked with no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you change the fields from &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;fieldList&lt;/SPAN&gt; to &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;"*"&lt;/SPAN&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264324#M20362</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-18T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264325#M20363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10.5.1&amp;nbsp; I tried the * and still get Invalid SQL statement.&amp;nbsp; I also tried different queries before to make sure the code was right and it worked.&amp;nbsp; It is just the cast that gives the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 14:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264325#M20363</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-07-18T14:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264326#M20364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try your query using your Database interface directly to test the where clause.&amp;nbsp; CAST is a database specific function -- I know SQL Server can used it; however; an error will occur if run against an MS Access database for that you would have to use INT(....). -- as an example --&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264326#M20364</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2018-07-18T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264327#M20365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a python in_memory table (not a FC)&amp;nbsp;which in my experience acts just like a GDB.&amp;nbsp; When I make a test copy into a GDB and use my cast query in a Definition Query it works great.&amp;nbsp; Which should simulate the interface directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried int, INT, Interger, INTEGER, SHORTINT, and a few others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264327#M20365</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-07-18T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264328#M20366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you test it on a in_memory table using 10.6?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264328#M20366</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-07-18T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264329#M20367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can, might not be able to get around to it for a few hours.&amp;nbsp; That said, in-memory workspaces are &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; file geodatabases and don't support all the geodatabase functionality, including support of SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264329#M20367</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-18T16:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264330#M20368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind it does work for me when hitting a GDB directly.&amp;nbsp; So it must be a limitation with in_memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weird because I used the Feature Class to Feature Class tool to create it.&amp;nbsp; Then I have 60+ other queries in this script and they all work just fine.&amp;nbsp; Some are huge too.&amp;nbsp; Only the Cast does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did find this post where Esri said only basic stuff.&amp;nbsp; Weird limitation &lt;A _jive_internal="true" href="https://community.esri.com/thread/165846"&gt;https://community.esri.com/thread/165846&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already had put a workaround by doing a Add Field and Calculate Field since it is just a in_memory table it does not change the original.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264330#M20368</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-07-18T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264331#M20369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Honestly, I have never seen documentation on what limitations the in-memory workspace has, just that it doesn't fully implement the geodatabase model.&amp;nbsp; Why does &lt;EM&gt;X&lt;/EM&gt; SQL statement work but not CAST?&amp;nbsp; I have no idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264331#M20369</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-18T17:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264332#M20370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you feel one of these responses answered your question, please mark it so to close out the question.&amp;nbsp; Otherwise, I will close it as "assumed answered" later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264332#M20370</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-18T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: CAST does not work in SearchCursor Queries?</title>
      <link>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264333#M20371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea I can understand limitations but then say that in the doc.&amp;nbsp; It should really be a list of what works and does not but at least mention that there are some.&amp;nbsp; Why hide this info?&amp;nbsp; It can cost people lots of time.&amp;nbsp; Esp when so much of the help files use in_memory so interchangeably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways the reason I said it works like a GDB is based on experience with shp files.&amp;nbsp; If you copy a shp file to a in_memory space it will then act like a GDB.&amp;nbsp; One example is creating a new int field.&amp;nbsp; In a shp file it defaults the field to 0 but in a GDB it defaults to Null.&amp;nbsp; (This tripped up a script I was speeding up for someone&amp;nbsp;that was counting on the 0.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cast-does-not-work-in-searchcursor-queries/m-p/264333#M20371</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-07-18T17:28:50Z</dc:date>
    </item>
  </channel>
</rss>

