Lines Matching refs:i
33 for ($i = 1; $i <= 10; ++$i) {
36 $v_multi[$i][$j][$k] = $i * $j * $k;
54 for ($i = 1; $i <= 10; ++$i) {
55 $v_char[$i] = rand_str(100);
56 $v_date[$i] = rand_datetime();
57 $v_decimal[$i] = rand_number(18,3);
58 $v_double[$i] = rand_number(20);
59 $v_float[$i] = rand_number(7);
60 $v_integer[$i] = rand_number(9,0);
61 $v_numeric[$i] = rand_number(9,2);
62 $v_smallint[$i] = rand_number(5) % 32767;
63 $v_varchar[$i] = rand_str(1000);
75 for ($i = 1; $i <= 10; ++$i) {
77 if(strncmp($row->V_CHAR[$i],$v_char[$i],strlen($v_char[$i])) != 0) {
78 echo " CHAR[$i] fail:\n";
79 echo " in: ".$v_char[$i]."\n";
80 echo " out: ".$row->V_CHAR[$i]."\n";
82 if($row->V_DATE[$i] != $v_date[$i]) {
83 echo " DATE[$i] fail\n";
84 echo " in: ".$v_date[$i]."\n";
85 echo " out: ".$row->V_DATE[$i]."\n";
87 if($row->V_DECIMAL[$i] != $v_decimal[$i]) {
88 echo " DECIMAL[$i] fail\n";
89 echo " in: ".$v_decimal[$i]."\n";
90 echo " out: ".$row->V_DECIMAL[$i]."\n";
92 if(abs($row->V_DOUBLE[$i] - $v_double[$i]) > abs($v_double[$i] / 1E15)) {
93 echo " DOUBLE[$i] fail\n";
94 echo " in: ".$v_double[$i]."\n";
95 echo " out: ".$row->V_DOUBLE[$i]."\n";
97 if(abs($row->V_FLOAT[$i] - $v_float[$i]) > abs($v_float[$i] / 1E7)) {
98 echo " FLOAT[$i] fail\n";
99 echo " in: ".$v_float[$i]."\n";
100 echo " out: ".$row->V_FLOAT[$i]."\n";
102 if($row->V_INTEGER[$i] != $v_integer[$i]) {
103 echo " INTEGER[$i] fail\n";
104 echo " in: ".$v_integer[$i]."\n";
105 echo " out: ".$row->V_INTEGER[$i]."\n";
107 if ($row->V_NUMERIC[$i] != $v_numeric[$i]) {
108 echo " NUMERIC[$i] fail\n";
109 echo " in: ".$v_numeric[$i]."\n";
110 echo " out: ".$row->V_NUMERIC[$i]."\n";
112 if ($row->V_SMALLINT[$i] != $v_smallint[$i]) {
113 echo " SMALLINT[$i] fail\n";
114 echo " in: ".$v_smallint[$i]."\n";
115 echo " out: ".$row->V_SMALLINT[$i]."\n";
117 if ($row->V_VARCHAR[$i] != $v_varchar[$i]) {
118 echo " VARCHAR[$i] fail:\n";
119 echo " in: ".$v_varchar[$i]."\n";
120 echo " out: ".$row->V_VARCHAR[$i]."\n";