<?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_mssql</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/18491" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17355" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17299" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17134" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12473" />

     </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/18491">
      <title>MDB2_Driver_mssql: Bug 18491 [Open] MDB2_Driver_mssql - can not alterTable</title>
      <link>http://pear.php.net/bugs/18491</link>
      <content:encoded><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by mjeffreyj
2011-04-29T17:21:55+00:00
PHP: 5.3.0 OS: windows 2008 R2 Package Version: 1.5.0b3

Description:
------------
when IÂ´m using MDB2_Driver_mssql:
ERROR - MDB2 Error: can not alter

with MDB2_Driver_mysql:
OK -  no problem

Could be problem in MS SQL CONSTRAINTs?

Test script:
---------------
$mdb2_manager = $mdb2-&gt;loadModule('Manager');
		$definition =  array( 	'name' =&gt; 'TableName', 
								'add' =&gt; array( 'ColumnName' =&gt; array( 	 'type' =&gt; 'boolean', 
																		 'default' =&gt; 0 
																) 
												) 
							);											
		$mdb2_manager-&gt;alterTable('TableName', $definition, false);

Expected result:
----------------
script will add a new column into table

Actual result:
--------------
MDB2 Error: can not alter</pre>]]></content:encoded>
      <description><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by mjeffreyj
2011-04-29T17:21:55+00:00
PHP: 5.3.0 OS: windows 2008 R2 Package Version: 1.5.0b3

Description:
------------
when IÂ´m using MDB2_Driver_mssql:
ERROR - MDB2 Error: can not alter

with MDB2_Driver_mysql:
OK -  no problem

Could be problem in MS SQL CONSTRAINTs?

Test script:
---------------
$mdb2_manager = $mdb2-&gt;loadModule('Manager');
		$definition =  array( 	'name' =&gt; 'TableName', 
								'add' =&gt; array( 'ColumnName' =&gt; array( 	 'type' =&gt; 'boolean', 
																		 'default' =&gt; 0 
																) 
												) 
							);											
		$mdb2_manager-&gt;alterTable('TableName', $definition, false);

Expected result:
----------------
script will add a new column into table

Actual result:
--------------
MDB2 Error: can not alter</pre>]]></description>
      <dc:date>2011-04-29T17:32:14+00:00</dc:date>
      <dc:creator>tomas &amp;#x64;&amp;#111;&amp;#x74; kalous &amp;#x61;&amp;#116; haug-land &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>MDB2_Driver_mssql Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/17355">
      <title>MDB2_Driver_mssql: Bug 17355 [Open] setLimit in conjunction with SELECT DISTINCT builds invalid SQL</title>
      <link>http://pear.php.net/bugs/17355</link>
      <content:encoded><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by mspecht
2010-04-28T19:34:53+00:00
PHP: 5.2.10 OS: Linux (Debian Lenny) Package Version: 1.2.1

Description:
------------
When using setLimit() and there SQL query starts with 'SELECT DISTINCT column FROM ...' the Limiter TOP is inserted between SELECT and DISTINCT, which results in an invalid query.

There is similar closed bug  (#8206) with limitQuery, but with queryCol it still seems to exist.

Test script:
---------------
$str_sql = 'SELECT DISTINCT event_incident.id FROM event_incident LEFT JOIN event_incidentbuilding ON (event_incidentbuilding.id_incident = event_incident.id)';
	  			
$mdb2-&gt;setLimit(200, 0);
$msc_result = $db-&gt;queryCol($str_sql);
if (PEAR::isError($msc_result)) {
    die($msc_result-&gt;getDebugInfo());
}

var_dump($msc_result);

Expected result:
----------------
It should return an array of ids (e.g. 1,2, ....) with a maximum length of 200

Actual result:
--------------
getDebugInfo:

_doQuery: [Error message: Could not execute statement]
[Last executed query: 	SELECT TOP 200 DISTINCT event_incident.id FROM event_incident LEFT JOIN event_incidentbuilding ON (event_incidentbuilding.id_incident = event_incident.id)]
[Native code: 156]
[Native message: Incorrect syntax near the keyword 'DISTINCT'.]</pre>]]></content:encoded>
      <description><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by mspecht
2010-04-28T19:34:53+00:00
PHP: 5.2.10 OS: Linux (Debian Lenny) Package Version: 1.2.1

Description:
------------
When using setLimit() and there SQL query starts with 'SELECT DISTINCT column FROM ...' the Limiter TOP is inserted between SELECT and DISTINCT, which results in an invalid query.

There is similar closed bug  (#8206) with limitQuery, but with queryCol it still seems to exist.

Test script:
---------------
$str_sql = 'SELECT DISTINCT event_incident.id FROM event_incident LEFT JOIN event_incidentbuilding ON (event_incidentbuilding.id_incident = event_incident.id)';
	  			
$mdb2-&gt;setLimit(200, 0);
$msc_result = $db-&gt;queryCol($str_sql);
if (PEAR::isError($msc_result)) {
    die($msc_result-&gt;getDebugInfo());
}

var_dump($msc_result);

Expected result:
----------------
It should return an array of ids (e.g. 1,2, ....) with a maximum length of 200

Actual result:
--------------
getDebugInfo:

_doQuery: [Error message: Could not execute statement]
[Last executed query: 	SELECT TOP 200 DISTINCT event_incident.id FROM event_incident LEFT JOIN event_incidentbuilding ON (event_incidentbuilding.id_incident = event_incident.id)]
[Native code: 156]
[Native message: Incorrect syntax near the keyword 'DISTINCT'.]</pre>]]></description>
      <dc:date>2010-04-28T19:34:53+00:00</dc:date>
      <dc:creator>mspecht &amp;#x61;&amp;#116; e-grafixx &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>MDB2_Driver_mssql Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/17299">
      <title>MDB2_Driver_mssql: Bug 17299 [Open] Limited queries always return ($limit - 1) rows</title>
      <link>http://pear.php.net/bugs/17299</link>
      <content:encoded><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by iceq
2010-04-08T14:42:48+00:00
PHP: 5.2.12 OS: no matter Package Version: 1.3.0b2

Description:
------------
Is it supposed to be so that when I query N rows I always get N-1?
E.g. in pagination it always misses Nth row.
I locally fixed it by adding MDB2_BufferedResult_mssql::__construct ()
with $this-&gt;limit = max(0, $limit); 
instead of parental $this-&gt;limit = max(0, $limit - 1);
and it seems to work fine now.
Why is $limit being decremented in the first place?</pre>]]></content:encoded>
      <description><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by iceq
2010-04-08T14:42:48+00:00
PHP: 5.2.12 OS: no matter Package Version: 1.3.0b2

Description:
------------
Is it supposed to be so that when I query N rows I always get N-1?
E.g. in pagination it always misses Nth row.
I locally fixed it by adding MDB2_BufferedResult_mssql::__construct ()
with $this-&gt;limit = max(0, $limit); 
instead of parental $this-&gt;limit = max(0, $limit - 1);
and it seems to work fine now.
Why is $limit being decremented in the first place?</pre>]]></description>
      <dc:date>2010-04-08T14:42:48+00:00</dc:date>
      <dc:creator>iceq &amp;#x61;&amp;#116; yandex &amp;#x64;&amp;#111;&amp;#x74; ru</dc:creator>
      <dc:subject>MDB2_Driver_mssql Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/17134">
      <title>MDB2_Driver_mssql: Bug 17134 [Open] Installation problem</title>
      <link>http://pear.php.net/bugs/17134</link>
      <content:encoded><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by rprandini
2010-02-18T21:21:03+00:00
PHP: 5.3.0 OS: WINDOWS 2000 sp4 Package Version: 1.3.0b2

Description:
------------
PHP 5.3.0 
MDB2 2.5.0b2 

PROBLEM

pear/MDB2_Driver_mssql requires PHP extension &quot;mssql&quot;

i have php_mssql visible under phpinfo()

MSSQL Support	enabled
Active Persistent Links 	0
Active Links 	                0
Library version 	                7.0

Directive	Local Value	        Master         Value
mssql.allow_persistent	        On	        On
mssql.batchsize	                        0	        0
mssql.compatability_mode	        Off	        Off
mssql.connect_timeout	        5	        5
mssql.datetimeconvert	        On	        On
mssql.max_links	                        Unlimited	Unlimited
mssql.max_persistent	                Unlimited	Unlimited
mssql.max_procs	                Unlimited	Unlimited
mssql.min_error_severity	        10	        10
mssql.min_message_severity	10	        10
mssql.secure_connection	        Off	        Off
mssql.textlimit	                        Server default	Server default
mssql.textsize	                        Server default	Server default
mssql.timeout	                        60	        60




Test script:
---------------
pear install MDB2_Driver_mssql-1.3.0b2

pear/MDB2_Driver_mssql requires PHP extension &quot;mssql&quot;

Expected result:
----------------
The correct installation without problem

Actual result:
--------------
Workaround is 
pear install --nodeps MDB2_Driver_mssql-1.3.0b2</pre>]]></content:encoded>
      <description><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by rprandini
2010-02-18T21:21:03+00:00
PHP: 5.3.0 OS: WINDOWS 2000 sp4 Package Version: 1.3.0b2

Description:
------------
PHP 5.3.0 
MDB2 2.5.0b2 

PROBLEM

pear/MDB2_Driver_mssql requires PHP extension &quot;mssql&quot;

i have php_mssql visible under phpinfo()

MSSQL Support	enabled
Active Persistent Links 	0
Active Links 	                0
Library version 	                7.0

Directive	Local Value	        Master         Value
mssql.allow_persistent	        On	        On
mssql.batchsize	                        0	        0
mssql.compatability_mode	        Off	        Off
mssql.connect_timeout	        5	        5
mssql.datetimeconvert	        On	        On
mssql.max_links	                        Unlimited	Unlimited
mssql.max_persistent	                Unlimited	Unlimited
mssql.max_procs	                Unlimited	Unlimited
mssql.min_error_severity	        10	        10
mssql.min_message_severity	10	        10
mssql.secure_connection	        Off	        Off
mssql.textlimit	                        Server default	Server default
mssql.textsize	                        Server default	Server default
mssql.timeout	                        60	        60




Test script:
---------------
pear install MDB2_Driver_mssql-1.3.0b2

pear/MDB2_Driver_mssql requires PHP extension &quot;mssql&quot;

Expected result:
----------------
The correct installation without problem

Actual result:
--------------
Workaround is 
pear install --nodeps MDB2_Driver_mssql-1.3.0b2</pre>]]></description>
      <dc:date>2010-02-18T21:21:03+00:00</dc:date>
      <dc:creator>riccardoprandini01 &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>MDB2_Driver_mssql Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12473">
      <title>MDB2_Driver_mssql: Bug 12473 [Assigned] sequence is off by one</title>
      <link>http://pear.php.net/bugs/12473</link>
      <content:encoded><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by quipo
2007-11-18T18:03:33+00:00
PHP: 5.2.4 OS: irrelevant Package Version: CVS

Description:
------------
Emulated sequence values are off by one. When created, they start from 2 instead of 1.</pre>]]></content:encoded>
      <description><![CDATA[<pre>MDB2_Driver_mssql Bug
Reported by quipo
2007-11-18T18:03:33+00:00
PHP: 5.2.4 OS: irrelevant Package Version: CVS

Description:
------------
Emulated sequence values are off by one. When created, they start from 2 instead of 1.</pre>]]></description>
      <dc:date>2009-10-16T02:04:02+00:00</dc:date>
      <dc:creator>l &amp;#x64;&amp;#111;&amp;#x74; alberton &amp;#x61;&amp;#116; quipo &amp;#x64;&amp;#111;&amp;#x74; it</dc:creator>
      <dc:subject>MDB2_Driver_mssql Bug</dc:subject>
    </item>
</rdf:RDF>
