#1594: [Patch] Oracle building creates Notice: Undefined Index: scale
------------------------------------------+---------------------------------
 Reporter:  tchakkapark                   |       Owner:  jwage
     Type:  defect                        |      Status:  new  
 Priority:  minor                         |   Milestone:  1.0.4
Component:  Import/Export                 |     Version:  1.0.3
 Keywords:  oracle undefined index scale  |    Has_test:  0    
 Mystatus:  Pending Core Response         |   Has_patch:  1    
------------------------------------------+---------------------------------
 Using Symfony 1.1 with sfDoctrinePlugin but with libraries from changeset
 5115. This message has existed prior to the latest changeset, but I
 figured it might be a good time to file it in :)

 Running the following command for an Oracle database:

 {{{
 symfony doctrine:build-schema
 }}}

 Yields the following for each column:

 {{{
 Notice: Undefined index:  scale in
 C:\webroot\v2\plugins\sfDoctrinePlugin\lib\do
 ctrine\Doctrine\Import\Oracle.php on line 147
 }}}

 Proposed Patch:

 {{{
 \lib\doctrine\Doctrine\Import\Oracle.php line 147, changeset 5115

             $descr[$val['column_name']] = array(
                'name'       => $val['column_name'],
                'notnull'    => (bool) ($val['nullable'] === 'N'),
                'ntype'      => $val['data_type'],
                'type'       => $decl['type'][0],
                'alltypes'   => $decl['type'],
                'fixed'      => $decl['fixed'],
                'unsigned'   => $decl['unsigned'],
                'default'    => $val['data_default'],
                'length'     => $val['data_length'],
                'scale'      => $val['scale'], //remove or update this
 field
             );
         }
 }}}

 Overall, having it there does not affect my ability to build the model.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1594>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to