Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Experience Builder
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Europe
Asia Pacific
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcGIS REST APIs and Services
:
ArcGIS REST APIs & Services Ques.
:
Re: bug: Query Where 1=2 returns more than zero fe...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
bug: Query Where 1=2 returns more than zero features
Subscribe
725
3
11-28-2011 11:20 AM
by
KirkKuykendall
Deactivated User
11-28-2011
11:20 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
I would expect the count to be zero if Where="1=2", however I get 3149 (all features).
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/Map...
In some cases I notice setting Where="1=1" is used to return all rows, seems like 1=2 would return none.
Tags
(3)
Tags:
_rest
developers
rest_api
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
3 Replies
by
RaviNarayanan
Esri Contributor
11-29-2011
05:01 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Kirk,
Thank you for this posting. Since this is a 10.0 specific issue, I have submitted a bug for ArcGIS Server for .NET 10.0. Please let us know if this is critical for your workflow.
This is not reproducible in 10.1 beta.
Reply
0
Kudos
by
KirkKuykendall
Deactivated User
11-29-2011
05:50 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Thanks Ravi, Is there a 10.1 sample server available for me to test against?
Reply
0
Kudos
by
RaviNarayanan
Esri Contributor
12-21-2011
07:39 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Here is one --
http://servicesbeta4.esri.com/arcgis/rest/services
Reply
0
Kudos
Post Reply