GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
sqlmarker
Browse code
• Corrected upper bound of Order_Line.Price.
master
1 parent
5e14a9a
commit
e7a4660627de3cf57dd190079612ce4a02e9c782
Nigel Stanger
authored
on 17 May 2016
Patch
Showing
1 changed file
BDL/Test_classes/Order_line/BDL_Test_Order_line.php
Ignore Space
Show notes
View
BDL/Test_classes/Order_line/BDL_Test_Order_line.php
<?php require_once "Schema.php"; abstract class BDL_Test_Order_line extends PHPUnit_Extensions_Database_TestCase_CreateTable { public function getTableName() { return 'ORDER_LINE'; } public function getColumnList() { return array( 'ORDER_NUM' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER' ), 'min_length' => 10, 'max_length' => 10, 'decimals' => 0, 'nullable' => false, 'test_value' => "36", ), 'COMPONENT_CODE' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER' ), 'min_length' => 8, 'max_length' => 8, 'decimals' => 0, 'nullable' => false, 'test_value' => "687", ), 'QTY_ORDERED' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ), 'min_length' => 5, 'max_length' => 6, 'decimals' => 0, 'underflow' => 0, 'overflow' => 100000, 'nullable' => false, 'test_value' => "20", ), 'QTY_RECEIVED' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ), 'min_length' => 5, 'max_length' => 6, 'decimals' => 0, 'underflow' => -1, // 'overflow' => 1000000, 'nullable' => false, 'test_value' => "20", ), 'PRICE' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'DECIMAL' ), 'min_length' => 6, 'max_length' => 7, 'decimals' => 2, 'underflow' => -0.01, 'overflow' => 10000.00, 'nullable' => false, 'test_value' => "24.99", ), ); } public function getPKColumnList() { return array( 'ORDER_NUM', 'COMPONENT_CODE' ); } public function getFKColumnList() { return array( 'ORDER_HEAD' => array( 'ORDER_NUM' ), 'COMPONENT' => array( 'COMPONENT_CODE' ), ); } public function getUniqueColumnList() { return array(); } } ?>
<?php require_once "Schema.php"; abstract class BDL_Test_Order_line extends PHPUnit_Extensions_Database_TestCase_CreateTable { public function getTableName() { return 'ORDER_LINE'; } public function getColumnList() { return array( 'ORDER_NUM' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER' ), 'min_length' => 10, 'max_length' => 10, 'decimals' => 0, 'nullable' => false, 'test_value' => "36", ), 'COMPONENT_CODE' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER' ), 'min_length' => 8, 'max_length' => 8, 'decimals' => 0, 'nullable' => false, 'test_value' => "687", ), 'QTY_ORDERED' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ), 'min_length' => 5, 'max_length' => 6, 'decimals' => 0, 'underflow' => 0, 'overflow' => 100000, 'nullable' => false, 'test_value' => "20", ), 'QTY_RECEIVED' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ), 'min_length' => 5, 'max_length' => 6, 'decimals' => 0, 'underflow' => -1, // 'overflow' => 1000000, 'nullable' => false, 'test_value' => "20", ), 'PRICE' => array( 'generic_type' => 'NUMBER', 'sql_type' => array( 'NUMBER', 'DECIMAL' ), 'min_length' => 6, 'max_length' => 7, 'decimals' => 2, 'underflow' => -0.01, 'overflow' => 100000.00, 'nullable' => false, 'test_value' => "24.99", ), ); } public function getPKColumnList() { return array( 'ORDER_NUM', 'COMPONENT_CODE' ); } public function getFKColumnList() { return array( 'ORDER_HEAD' => array( 'ORDER_NUM' ), 'COMPONENT' => array( 'COMPONENT_CODE' ), ); } public function getUniqueColumnList() { return array(); } } ?>
Show line notes below