[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.oproc.php, 1.1.2.5
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.oproc.php, 1.1.2.5 |
Date: |
Sun, 23 May 2004 13:00:29 -0000 |
Update of /property
Modified Files:
Branch: proposal-branch
class.oproc.php
date: 2004/05/04 08:55:12; author: sigurdne; state: Exp; lines: +2 -65
Log Message:
no message
=====================================================================
Index: property/class.oproc.php
diff -u property/class.oproc.php:1.1.2.4 property/class.oproc.php:1.1.2.5
--- property/class.oproc.php:1.1.2.4 Tue May 4 08:53:35 2004
+++ property/class.oproc.php Tue May 4 08:55:12 2004
@@ -34,9 +34,7 @@
{
$sql = "CREATE TABLE $sTableName (";
-
$columns=$TableDef['fd'];
- //foreach($columns as $field)
$last=count($columns)-1;
$i=0;
@@ -49,68 +47,7 @@
$sql .= ", ";
}
$i++;
-
-/* $sql .= $sColumnName . ' ';
-
- $sType = '';
- $iPrecision = 0;
- $iScale = 0;
- $sDefault = '';
- $bNullable = true;
- $sFieldSQL = '';
- reset($aColumnDef);
- while(list($sAttr, $vAttrVal) =
each($aColumnDef))
- {
- switch ($sAttr)
- {
- case 'type':
- $sType = $vAttrVal;
- break;
- case 'precision':
- $iPrecision =
(int)$vAttrVal;
- break;
- case 'scale':
- $iScale =
(int)$vAttrVal;
- break;
- case 'default':
- $sDefault = $vAttrVal;
- if($DEBUG) {
echo'<br>_GetFieldSQL(): Default="' . $sDefault . '"'; }
- break;
- case 'nullable':
- $bNullable = $vAttrVal;
- break;
- }
-
- if($sFieldSQL =
$this->TranslateType($sType, $iPrecision, $iScale))
- {
- if($bNullable == False)
- {
- $sFieldSQL .= ' NOT
NULL';
- }
- else
- {
- $sFieldSQL .= ' NULL';
- }
-
- if($sDefault != '')
- {
- $sTranslatedDefault =
$this->TranslateDefault($sDefault);
- $sFieldSQL .= " DEFAULT
'$sTranslatedDefault'";
- }
- elseif($sDefault == '0')
- {
- $sFieldSQL .= " DEFAULT
'0'";
- }
- }
-
- if($i<$last)
- {
- $sFieldSQL .= ", ";
- }
- }
- $i++;
- $sql .= $sFieldSQL;
-*/ }
+ }
$sFields = '';
while(list($key, $sField) = each($TableDef['pk']))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.oproc.php, 1.1.2.5,
nomail <=