<?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: Style Editor: problems with &amp;quot;&amp;lt;null&amp;gt;&amp;quot;? in AutoCAD Map 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176680#M7166</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/59562"&gt;@parkr4st&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, but I think that Jens's answer it the correct one.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/849012"&gt;@swt-gis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jens, do you know if these details are documented somewhere in the official(!!) documentation?&lt;/P&gt;&lt;P&gt;So, as a result, the user has to modify 50% or more of his statement, because "null" can happen in a lot of fields ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'm just thinking about it - if the "different behaviour of SQL statements in style editor and in datacheck and in ...." should be called a "Map SQL dialect" or simple a collection of bugs and strange implementations ...)&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2019 09:51:06 GMT</pubDate>
    <dc:creator>Peter2_1</dc:creator>
    <dc:date>2019-12-02T09:51:06Z</dc:date>
    <item>
      <title>Style Editor: problems with "&lt;null&gt;"?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9173881#M7163</link>
      <description>&lt;P&gt;Actually a simple thing..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data-table has some values, like "Val A", "Val B" "Val C" ..&lt;/P&gt;&lt;P&gt;In Style Editor I have a definition like&lt;/P&gt;&lt;PRE&gt;VAL A = 1 or VAL B is 'red'&lt;/PRE&gt;&lt;P&gt;Should be clear, but sometimes I have "&amp;lt;null&amp;gt;" in Val A - and this "kills" the entire statement. Although "Val B is red", the statement returns false ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm this? Is it a correct behaviour?&lt;/P&gt;&lt;P&gt;I think "null is not 1, so go to the part behind the OR condition" .. Right or wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 15:17:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9173881#M7163</guid>
      <dc:creator>Peter2_1</dc:creator>
      <dc:date>2019-11-29T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Style Editor: problems with "&lt;null&gt;"?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9174825#M7164</link>
      <description>&lt;P&gt;change&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;VAL A = 1 or VAL B is 'red'&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;VAL A = '1' or VAL B is 'red'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 14:07:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9174825#M7164</guid>
      <dc:creator>parkr4st</dc:creator>
      <dc:date>2019-11-30T14:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Style Editor: problems with "&lt;null&gt;"?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176543#M7165</link>
      <description>&lt;P&gt;In my experience, the style editor interprets SQL differently than other programs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To solve the problem we do the following (assumption: NULL may occur in field VAL_A):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of&lt;/P&gt;&lt;PRE&gt;VAL_A = 1&lt;/PRE&gt;&lt;P&gt;We use:&lt;/P&gt;&lt;PRE&gt;VAL_A NULL or VAL_A = 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is important that the NULL part is at the front. This does &lt;U&gt;not&lt;/U&gt; work:&lt;/P&gt;&lt;PRE&gt;VAL_A = 1 or VAL_A NULL&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your complete statement should be (to handle NULL in VAL_A):&lt;/P&gt;&lt;PRE&gt;(VAL_A NULL or VAL_A = 1) or VAL_B is 'red'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 08:26:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176543#M7165</guid>
      <dc:creator>swt-gis</dc:creator>
      <dc:date>2019-12-02T08:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Style Editor: problems with "&lt;null&gt;"?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176680#M7166</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/59562"&gt;@parkr4st&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, but I think that Jens's answer it the correct one.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/849012"&gt;@swt-gis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jens, do you know if these details are documented somewhere in the official(!!) documentation?&lt;/P&gt;&lt;P&gt;So, as a result, the user has to modify 50% or more of his statement, because "null" can happen in a lot of fields ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'm just thinking about it - if the "different behaviour of SQL statements in style editor and in datacheck and in ...." should be called a "Map SQL dialect" or simple a collection of bugs and strange implementations ...)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 09:51:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176680#M7166</guid>
      <dc:creator>Peter2_1</dc:creator>
      <dc:date>2019-12-02T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Style Editor: problems with "&lt;null&gt;"?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176699#M7167</link>
      <description>&lt;P&gt;No, I don't know any documentary on the subject. What i've written is based only on my experiences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another problem that we solved by adding&amp;nbsp; NULL to the query:&lt;/P&gt;&lt;P&gt;Snapping to lines did not work:&lt;/P&gt;&lt;PRE&gt;NOT ID_DISPOSITION_STATE IN (10003,10004,10011,10012) and NOT ID_FUNCTION in ( 10006 , 10007)&lt;/PRE&gt;&lt;P&gt;That's how it works:&lt;/P&gt;&lt;PRE&gt;( NOT ID_DISPOSITION_STATE IN (10003,10004,10011,10012) OR ID_DISPOSITION_STATE NULL ) and ( NOT ID_FUNCTION in ( 10006 , 10007) OR ID_FUNCTION NULL)&lt;/PRE&gt;&lt;P&gt;Jens&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 10:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/style-editor-problems-with-quot-lt-null-gt-quot/m-p/9176699#M7167</guid>
      <dc:creator>swt-gis</dc:creator>
      <dc:date>2019-12-02T10:08:29Z</dc:date>
    </item>
  </channel>
</rss>

