adding test scripts
[csql.git] / test / tools / csql / exp.testnw010.ksh
blobe9fe271efa3d103bb1fa9e25b233859d4ba21e20
1 Network CSql
2 echo int data type testing;
3 Statement Executed
4 Statement Executed: Rows Affected = 1
5 Statement Executed: Rows Affected = 1
6 Statement Executed: Rows Affected = 1
7 Statement Executed: Rows Affected = 1
8 Statement Executed: Rows Affected = 1
9 Statement Executed: Rows Affected = 1
10 echo select * from t1;
11 ---------------------------------------------------------
12 t1.f1 t1.f2
13 ---------------------------------------------------------
14 10 1
15 11 1
16 12 1
17 13 1
18 -2147483648 1
19 2147483647 1
21 echo select * from t1 where f1 = 10;
22 ---------------------------------------------------------
23 t1.f1 t1.f2
24 ---------------------------------------------------------
25 10 1
27 echo select * from t1 where f1 != 12 AND f2 <= 13;
28 ---------------------------------------------------------
29 t1.f1 t1.f2
30 ---------------------------------------------------------
31 10 1
32 11 1
33 13 1
34 -2147483648 1
35 2147483647 1
37 echo select * from t1 where f1 = 12 AND f2 >= 22;
38 ---------------------------------------------------------
39 t1.f1 t1.f2
40 ---------------------------------------------------------
42 echo select * from t1 where f1 = 12 OR f1 > 13;
43 ---------------------------------------------------------
44 t1.f1 t1.f2
45 ---------------------------------------------------------
46 12 1
47 2147483647 1
49 echo select * from t1 where f1 = 12 OR f2 < 13;
50 ---------------------------------------------------------
51 t1.f1 t1.f2
52 ---------------------------------------------------------
53 10 1
54 11 1
55 12 1
56 13 1
57 -2147483648 1
58 2147483647 1
60 echo select * from t1 where f1 = 12 OR f2 <> 22;
61 ---------------------------------------------------------
62 t1.f1 t1.f2
63 ---------------------------------------------------------
64 10 1
65 11 1
66 12 1
67 13 1
68 -2147483648 1
69 2147483647 1
71 echo select * from t1 where NOT f1 = 12;
72 ---------------------------------------------------------
73 t1.f1 t1.f2
74 ---------------------------------------------------------
75 10 1
76 11 1
77 13 1
78 -2147483648 1
79 2147483647 1
81 echo select * from t1 where f1 != 12;
82 ---------------------------------------------------------
83 t1.f1 t1.f2
84 ---------------------------------------------------------
85 10 1
86 11 1
87 13 1
88 -2147483648 1
89 2147483647 1
91 echo select * from t1 where NOT f1 != 12;
92 ---------------------------------------------------------
93 t1.f1 t1.f2
94 ---------------------------------------------------------
95 12 1
97 echo select * from t1 where f1 = f2;
98 ---------------------------------------------------------
99 t1.f1 t1.f2
100 ---------------------------------------------------------
102 echo select * from t1 where f1 between 2147483646 and 2147483647;
103 ---------------------------------------------------------
104 t1.f1 t1.f2
105 ---------------------------------------------------------
106 2147483647 1
108 echo select * from t1 where f1 between -2147483647 and -2147483648;
109 ---------------------------------------------------------
110 t1.f1 t1.f2
111 ---------------------------------------------------------
113 echo update t1 set f2 = 2 where f1 != f2;
114 Statement Executed: Rows Affected = 6
115 ---------------------------------------------------------
116 t1.f1 t1.f2
117 ---------------------------------------------------------
118 10 2
119 11 2
120 12 2
121 13 2
122 -2147483648 2
123 2147483647 2
125 echo update t1 set f2 = 3 where f1 = 12;
126 Statement Executed: Rows Affected = 1
127 ---------------------------------------------------------
128 t1.f1 t1.f2
129 ---------------------------------------------------------
130 10 2
131 11 2
132 12 3
133 13 2
134 -2147483648 2
135 2147483647 2
137 Statement Executed: Rows Affected = 1
138 ---------------------------------------------------------
139 t1.f1 t1.f2
140 ---------------------------------------------------------
141 10 2
142 11 2
143 13 2
144 -2147483648 2
145 2147483647 2
147 Statement Executed