summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/field_funcs2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/tests/field_funcs2.phpt')
-rw-r--r--ext/oci8/tests/field_funcs2.phpt42
1 files changed, 21 insertions, 21 deletions
diff --git a/ext/oci8/tests/field_funcs2.phpt b/ext/oci8/tests/field_funcs2.phpt
index 896a63d11b..623bc3d835 100644
--- a/ext/oci8/tests/field_funcs2.phpt
+++ b/ext/oci8/tests/field_funcs2.phpt
@@ -11,26 +11,26 @@ $s = oci_parse($c, 'drop table field_funcs2_tab');
@oci_execute($s);
$t = array("C01" => "NUMBER",
- "C02" => "NUMBER(*,1)",
- "C03" => "NUMBER(9)",
- "C04" => "NUMBER(9,2)",
- "C05" => "NUMBER(9,1)",
- "C06" => "NUMBER(7,-2)",
- "C07" => "DECIMAL(4,9)",
- "C08" => "NUMERIC(4,9)",
- "C09" => "DECIMAL(4)",
- "C10" => "INTEGER",
- "C11" => "INT",
- "C12" => "SMALLINT",
- "C13" => "FLOAT",
- "C14" => "FLOAT(9)",
- "C15" => "DOUBLE PRECISION",
- "C16" => "REAL",
- );
+ "C02" => "NUMBER(*,1)",
+ "C03" => "NUMBER(9)",
+ "C04" => "NUMBER(9,2)",
+ "C05" => "NUMBER(9,1)",
+ "C06" => "NUMBER(7,-2)",
+ "C07" => "DECIMAL(4,9)",
+ "C08" => "NUMERIC(4,9)",
+ "C09" => "DECIMAL(4)",
+ "C10" => "INTEGER",
+ "C11" => "INT",
+ "C12" => "SMALLINT",
+ "C13" => "FLOAT",
+ "C14" => "FLOAT(9)",
+ "C15" => "DOUBLE PRECISION",
+ "C16" => "REAL",
+ );
$stmt = "create table field_funcs2_tab (\n";
foreach ($t as $colname => $type) {
- $stmt .= "$colname $type,\n";
+ $stmt .= "$colname $type,\n";
}
$stmt[strlen($stmt)-2] = ")";
@@ -41,10 +41,10 @@ $s = oci_parse($c, "select * from field_funcs2_tab");
oci_execute($s);
for ($i = 1; $i <= oci_num_fields($s); $i++) {
- $name = oci_field_name($s, $i);
- $precision = oci_field_precision($s, $i);
- $scale = oci_field_scale($s, $i);
- echo "$name ".$t[$name] .": precision $precision, scale $scale\n";
+ $name = oci_field_name($s, $i);
+ $precision = oci_field_precision($s, $i);
+ $scale = oci_field_scale($s, $i);
+ echo "$name ".$t[$name] .": precision $precision, scale $scale\n";
}
echo "Done\n";