<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=MDB2_Driver_ibase&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16741" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16741">
      <title>MDB2_Driver_ibase: Bug 16741 [Open] Manager::listTableIndexes and listTableContraints should check NULL or 0</title>
      <link>http://pear.php.net/bugs/16741</link>
      <content:encoded><![CDATA[<pre>MDB2_Driver_ibase Bug
Reported by nilya
2009-10-26T12:16:17+00:00
PHP: 5.2.5 OS: Any Package Version: CVS

Description:
------------
As stated here: http://www.alberton.info/firebird_sql_meta_info.html (see comment &quot;Lorenzo Alberton, 03 October 2009 19:17&quot;), there are need to check RDB$UNIQUE_FLAG for NULL or 0.

Test script:
---------------
/*
SQL:
CREATE TABLE TABLE2 (
    ID        INTEGER NOT NULL,
    DATEDATE  TIMESTAMP
);
ALTER TABLE TABLE2 ADD CONSTRAINT PK_TABLE2 PRIMARY KEY (ID);
CREATE INDEX IDX_TABLE2_DATE ON TABLE2 (DATEDATE);
*/

require_once &quot;MDB2.php&quot;;
$db =&amp; MDB2::connect('ibase(firebird)://SYSDBA:masterkey@db/test');

$db-&gt;loadModule('Manager');

var_dump($db-&gt;listTableIndexes('table2'));
var_dump($db-&gt;listTableConstraints('table2'));


Expected result:
----------------
array(1) {
  [0]=&gt;
  string(15) &quot;idx_table2_date&quot;
}
array(1) {
  [0]=&gt;
  string(9) &quot;pk_table2&quot;
}


Actual result:
--------------
array(0) {
}
array(2) {
  [0]=&gt;
  string(9) &quot;pk_table2&quot;
  [1]=&gt;
  string(15) &quot;idx_table2_date&quot;
}
(depends on Firebird version)</pre>]]></content:encoded>
      <description><![CDATA[<pre>MDB2_Driver_ibase Bug
Reported by nilya
2009-10-26T12:16:17+00:00
PHP: 5.2.5 OS: Any Package Version: CVS

Description:
------------
As stated here: http://www.alberton.info/firebird_sql_meta_info.html (see comment &quot;Lorenzo Alberton, 03 October 2009 19:17&quot;), there are need to check RDB$UNIQUE_FLAG for NULL or 0.

Test script:
---------------
/*
SQL:
CREATE TABLE TABLE2 (
    ID        INTEGER NOT NULL,
    DATEDATE  TIMESTAMP
);
ALTER TABLE TABLE2 ADD CONSTRAINT PK_TABLE2 PRIMARY KEY (ID);
CREATE INDEX IDX_TABLE2_DATE ON TABLE2 (DATEDATE);
*/

require_once &quot;MDB2.php&quot;;
$db =&amp; MDB2::connect('ibase(firebird)://SYSDBA:masterkey@db/test');

$db-&gt;loadModule('Manager');

var_dump($db-&gt;listTableIndexes('table2'));
var_dump($db-&gt;listTableConstraints('table2'));


Expected result:
----------------
array(1) {
  [0]=&gt;
  string(15) &quot;idx_table2_date&quot;
}
array(1) {
  [0]=&gt;
  string(9) &quot;pk_table2&quot;
}


Actual result:
--------------
array(0) {
}
array(2) {
  [0]=&gt;
  string(9) &quot;pk_table2&quot;
  [1]=&gt;
  string(15) &quot;idx_table2_date&quot;
}
(depends on Firebird version)</pre>]]></description>
      <dc:date>2009-10-26T12:16:17+00:00</dc:date>
      <dc:creator>ilpochta &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>MDB2_Driver_ibase Bug</dc:subject>
    </item>
</rdf:RDF>
