{"id":386,"date":"2010-09-21T20:20:39","date_gmt":"2010-09-22T01:20:39","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=386"},"modified":"2021-03-09T11:37:19","modified_gmt":"2021-03-09T16:37:19","slug":"powerbuilder-gotcha-quoted-identifiers","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-gotcha-quoted-identifiers\/","title":{"rendered":"PowerBuilder &#8216;Gotcha&#8217; &#8211; Quoted Identifiers"},"content":{"rendered":"<p>Be careful when developing against any database which supports quoted identifiers (I know, who doesn&#8217;t)? Anyway it is real easy to forget and &#8216;turn off&#8217; this option on your local db (or your development connection) and end up releasing a bug by a simple SQL alteration like this:<\/p>\n<pre name=\"code\" class=\"SQL\">--Original SQL\nSELECT \npartNo\n, partDesc\nFROM PartMaster \nWHERE categoryKey = :al_catkey<\/pre>\n<pre name=\"code\" class=\"SQL\">--Modified SQL\nSELECT \npartNo\n, partDesc\nFROM PartMaster \nWHERE categoryKey = :al_catkey\nAND partStatus = &quot;A&quot;<\/pre>\n<p>This works fine with quoted identifiers off but will generate an error when run on your customer&#8217;s database where this option is turned on (which is the default for many installations).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Be careful when developing against any database which supports quoted identifiers (I know, who doesn&#8217;t)? Anyway it is real easy to forget and &#8216;turn off&#8217; this option on your local db (or your development connection) and end up releasing a bug by a simple SQL alteration like this: &#8211;Original SQL SELECT partNo , partDesc FROM&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,3,10],"tags":[12,16,83,15],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/386"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":7,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":1830,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/386\/revisions\/1830"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}