<?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 Problem setting bind variable with borland cpp and oracle 9.2 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-setting-bind-variable-with-borland-cpp-and-oracle-9-2/m-p/3188673#M796389</link>
    <description>I have Problem in setting bind variable with borland cpp and oracle 9.2&lt;BR /&gt;&lt;BR /&gt;case #1:&lt;BR /&gt;&lt;BR /&gt;TQuery *qy=NewQuery(Application);&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Text=" SELECT  use_employee_num ";&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("FROM t_user ");&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("WHERE use_employee_num=:prmEmpNum ");&lt;BR /&gt;qy-&amp;gt;ParamByName("prmEmpNum")-&amp;gt;AsString=aEmployeeNum;&lt;BR /&gt;qy-&amp;gt;Open();&lt;BR /&gt;&lt;BR /&gt;the result of this query is the same as this query : Select use_employee_num  From t_user where use_employee_num=' '&lt;BR /&gt;The bind variable prmEmpNum seems not to be set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Case #2 &lt;BR /&gt;TQuery *qy=NewQuery(Application);&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Text=" SELECT  use_employee_num ";&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("FROM t_user ");&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("WHERE use_employee_num='" + aEmployeeNum + "' ");&lt;BR /&gt;qy-&amp;gt;Open();&lt;BR /&gt;&lt;BR /&gt;the result of this query is the result of  : Select use_employee_num  From t_user where use_employee_num='aEmployeeNum' &lt;BR /&gt;and aEmployeeNum is not an empty string&lt;BR /&gt;&lt;BR /&gt;does anyone know why there is difference in the result between these 2 queries and why the bind variable seems not to be set ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
    <pubDate>Wed, 11 Feb 2004 03:51:29 GMT</pubDate>
    <dc:creator>Dominique HUGOT</dc:creator>
    <dc:date>2004-02-11T03:51:29Z</dc:date>
    <item>
      <title>Problem setting bind variable with borland cpp and oracle 9.2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-setting-bind-variable-with-borland-cpp-and-oracle-9-2/m-p/3188673#M796389</link>
      <description>I have Problem in setting bind variable with borland cpp and oracle 9.2&lt;BR /&gt;&lt;BR /&gt;case #1:&lt;BR /&gt;&lt;BR /&gt;TQuery *qy=NewQuery(Application);&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Text=" SELECT  use_employee_num ";&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("FROM t_user ");&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("WHERE use_employee_num=:prmEmpNum ");&lt;BR /&gt;qy-&amp;gt;ParamByName("prmEmpNum")-&amp;gt;AsString=aEmployeeNum;&lt;BR /&gt;qy-&amp;gt;Open();&lt;BR /&gt;&lt;BR /&gt;the result of this query is the same as this query : Select use_employee_num  From t_user where use_employee_num=' '&lt;BR /&gt;The bind variable prmEmpNum seems not to be set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Case #2 &lt;BR /&gt;TQuery *qy=NewQuery(Application);&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Text=" SELECT  use_employee_num ";&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("FROM t_user ");&lt;BR /&gt;qy-&amp;gt;SQL-&amp;gt;Add("WHERE use_employee_num='" + aEmployeeNum + "' ");&lt;BR /&gt;qy-&amp;gt;Open();&lt;BR /&gt;&lt;BR /&gt;the result of this query is the result of  : Select use_employee_num  From t_user where use_employee_num='aEmployeeNum' &lt;BR /&gt;and aEmployeeNum is not an empty string&lt;BR /&gt;&lt;BR /&gt;does anyone know why there is difference in the result between these 2 queries and why the bind variable seems not to be set ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Wed, 11 Feb 2004 03:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-setting-bind-variable-with-borland-cpp-and-oracle-9-2/m-p/3188673#M796389</guid>
      <dc:creator>Dominique HUGOT</dc:creator>
      <dc:date>2004-02-11T03:51:29Z</dc:date>
    </item>
  </channel>
</rss>

