FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18491&edit=1

ID: 18491
Updated by: l.alberton@quipo.it
Reported By: tomas dot kalous at haug-land dot com
Summary: MDB2_Driver_mssql - can not alterTable
Status: Open
Type: Bug
Package: MDB2_Driver_mssql
Operating System: windows 2008 R2
Package Version: 1.5.0b3
PHP Version: 5.3.0
Roadmap Versions:
New Comment:

what's the output of errorInfo() / getUserInfo()?


Previous Comments:
------------------------------------------------------------------------

[2011-04-29 13:21:55] mjeffreyj

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->loadModule('Manager');
$definition = array( 'name' => 'TableName',
'add' => array( 'ColumnName' => array( 'type' => 'boolean',
'default' => 0
)
)
);
$mdb2_manager->alterTable('TableName', $definition, false);

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

Actual result:
--------------
MDB2 Error: can not alter

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 29, '11 at 12:31p
activeApr 29, '11 at 12:31p
posts1
users1
websitepear.php.net

1 user in discussion

L Alberton: 1 post

People

Translate

site design / logo © 2022 Grokbase