|
4 | 4 |
|
5 | 5 | function odbc_close_all(): void {}
|
6 | 6 |
|
7 |
| -/** @param resource $result_id */ |
8 |
| -function odbc_binmode($result_id, int $mode): bool {} |
| 7 | +/** @param resource $statement */ |
| 8 | +function odbc_binmode($statement, int $mode): bool {} |
9 | 9 |
|
10 |
| -/** @param resource $result_id */ |
11 |
| -function odbc_longreadlen($result_id, int $length): bool {} |
| 10 | +/** @param resource $statement */ |
| 11 | +function odbc_longreadlen($statement, int $length): bool {} |
12 | 12 |
|
13 | 13 | /**
|
14 |
| - * @param resource $connection_id |
| 14 | + * @param resource $odbc |
15 | 15 | * @return resource|false
|
16 | 16 | */
|
17 |
| -function odbc_prepare($connection_id, string $query) {} |
| 17 | +function odbc_prepare($odbc, string $query) {} |
18 | 18 |
|
19 |
| -/** @param resource $result_id */ |
20 |
| -function odbc_execute($result_id, array $parameters_array = []): bool {} |
| 19 | +/** @param resource $statement */ |
| 20 | +function odbc_execute($statement, array $params = []): bool {} |
21 | 21 |
|
22 |
| -/** @param resource $result_id */ |
23 |
| -function odbc_cursor($result_id): string|false {} |
| 22 | +/** @param resource $statement */ |
| 23 | +function odbc_cursor($statement): string|false {} |
24 | 24 |
|
25 | 25 | #ifdef HAVE_SQLDATASOURCES
|
26 |
| -/** @param resource $connection_id */ |
27 |
| -function odbc_data_source($connection_id, int $fetch_type): array|false {} |
| 26 | +/** @param resource $odbc */ |
| 27 | +function odbc_data_source($odbc, int $fetch_type): array|false {} |
28 | 28 | #endif
|
29 | 29 |
|
30 | 30 | /**
|
31 |
| - * @param resource $connection_id |
| 31 | + * @param resource $odbc |
32 | 32 | * @return resource|false
|
33 | 33 | */
|
34 |
| -function odbc_exec($connection_id, string $query) {} |
| 34 | +function odbc_exec($odbc, string $query) {} |
35 | 35 |
|
36 | 36 | /**
|
37 |
| - * @param resource $connection_id |
| 37 | + * @param resource $odbc |
38 | 38 | * @return resource|false
|
39 | 39 | * @alias odbc_exec
|
40 | 40 | */
|
41 |
| -function odbc_do($connection_id, string $query) {} |
| 41 | +function odbc_do($odbc, string $query) {} |
42 | 42 |
|
43 | 43 | #ifdef PHP_ODBC_HAVE_FETCH_HASH
|
44 |
| -/** @param resource $result */ |
45 |
| -function odbc_fetch_object($result, int $rownumber = -1): stdClass|false {} |
| 44 | +/** @param resource $statement */ |
| 45 | +function odbc_fetch_object($statement, int $row = -1): stdClass|false {} |
46 | 46 |
|
47 |
| -/** @param resource $result */ |
48 |
| -function odbc_fetch_array($result, int $rownumber = -1): array|false {} |
| 47 | +/** @param resource $statement */ |
| 48 | +function odbc_fetch_array($statement, int $row = -1): array|false {} |
49 | 49 | #endif
|
50 | 50 |
|
51 | 51 | /**
|
52 |
| - * @param resource $result_id |
53 |
| - * @param array $result_array |
| 52 | + * @param resource $statement |
| 53 | + * @param array $array |
54 | 54 | */
|
55 |
| -function odbc_fetch_into($result_id, &$result_array, int $rownumber = 0): int|false {} |
| 55 | +function odbc_fetch_into($statement, &$array, int $row = 0): int|false {} |
56 | 56 |
|
57 |
| -/** @param resource $result_id */ |
58 |
| -function odbc_fetch_row($result_id, ?int $row_number = null): bool {} |
| 57 | +/** @param resource $statement */ |
| 58 | +function odbc_fetch_row($statement, ?int $row = null): bool {} |
59 | 59 |
|
60 |
| -/** @param resource $result_id */ |
61 |
| -function odbc_result($result_id, string|int $field): string|bool|null {} |
| 60 | +/** @param resource $statement */ |
| 61 | +function odbc_result($statement, string|int $field): string|bool|null {} |
62 | 62 |
|
63 |
| -/** @param resource $result_id */ |
64 |
| -function odbc_result_all($result_id, string $format = ""): int|false {} |
| 63 | +/** @param resource $statement */ |
| 64 | +function odbc_result_all($statement, string $format = ""): int|false {} |
65 | 65 |
|
66 |
| -/** @param resource $result_id */ |
67 |
| -function odbc_free_result($result_id): bool {} |
| 66 | +/** @param resource $statement */ |
| 67 | +function odbc_free_result($statement): bool {} |
68 | 68 |
|
69 | 69 | /** @return resource|false */
|
70 | 70 | function odbc_connect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
|
71 | 71 |
|
72 | 72 | /** @return resource|false */
|
73 | 73 | function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
|
74 | 74 |
|
75 |
| -/** @param resource $connection_id */ |
76 |
| -function odbc_close($connection_id): void {} |
| 75 | +/** @param resource $odbc */ |
| 76 | +function odbc_close($odbc): void {} |
77 | 77 |
|
78 |
| -/** @param resource $result_id */ |
79 |
| -function odbc_num_rows($result_id): int {} |
| 78 | +/** @param resource $statement */ |
| 79 | +function odbc_num_rows($statement): int {} |
80 | 80 |
|
81 | 81 | #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
|
82 |
| -/** @param resource $result_id */ |
83 |
| -function odbc_next_result($result_id): bool {} |
| 82 | +/** @param resource $statement */ |
| 83 | +function odbc_next_result($statement): bool {} |
84 | 84 | #endif
|
85 | 85 |
|
86 |
| -/** @param resource $result_id */ |
87 |
| -function odbc_num_fields($result_id): int {} |
| 86 | +/** @param resource $statement */ |
| 87 | +function odbc_num_fields($statement): int {} |
88 | 88 |
|
89 |
| -/** @param resource $result_id */ |
90 |
| -function odbc_field_name($result_id, int $field_number): string|false {} |
| 89 | +/** @param resource $statement */ |
| 90 | +function odbc_field_name($statement, int $field): string|false {} |
91 | 91 |
|
92 |
| -/** @param resource $result_id */ |
93 |
| -function odbc_field_type($result_id, int $field_number): string|false {} |
| 92 | +/** @param resource $statement */ |
| 93 | +function odbc_field_type($statement, int $field): string|false {} |
94 | 94 |
|
95 |
| -/** @param resource $result_id */ |
96 |
| -function odbc_field_len($result_id, int $field_number): int|false {} |
| 95 | +/** @param resource $statement */ |
| 96 | +function odbc_field_len($statement, int $field): int|false {} |
97 | 97 |
|
98 | 98 | /**
|
99 |
| - * @param resource $result_id |
| 99 | + * @param resource $statement |
100 | 100 | * @alias odbc_field_len
|
101 | 101 | */
|
102 |
| -function odbc_field_precision($result_id, int $field_number): int|false {} |
| 102 | +function odbc_field_precision($statement, int $field): int|false {} |
103 | 103 |
|
104 |
| -/** @param resource $result_id */ |
105 |
| -function odbc_field_scale($result_id, int $field_number): int|false {} |
| 104 | +/** @param resource $statement */ |
| 105 | +function odbc_field_scale($statement, int $field): int|false {} |
106 | 106 |
|
107 |
| -/** @param resource $result_id */ |
108 |
| -function odbc_field_num($result_id, string $field_name): int|false {} |
| 107 | +/** @param resource $statement */ |
| 108 | +function odbc_field_num($statement, string $field): int|false {} |
109 | 109 |
|
110 |
| -/** @param resource $connection_id */ |
111 |
| -function odbc_autocommit($connection_id, bool $onoff = false): int|bool {} |
| 110 | +/** @param resource $odbc */ |
| 111 | +function odbc_autocommit($odbc, bool $enable = false): int|bool {} |
112 | 112 |
|
113 |
| -/** @param resource $connection_id */ |
114 |
| -function odbc_commit($connection_id): bool {} |
| 113 | +/** @param resource $odbc */ |
| 114 | +function odbc_commit($odbc): bool {} |
115 | 115 |
|
116 |
| -/** @param resource $connection_id */ |
117 |
| -function odbc_rollback($connection_id): bool {} |
| 116 | +/** @param resource $odbc */ |
| 117 | +function odbc_rollback($odbc): bool {} |
118 | 118 |
|
119 |
| -/** @param resource|null $connection_id */ |
120 |
| -function odbc_error($connection_id = null): string {} |
| 119 | +/** @param resource|null $odbc */ |
| 120 | +function odbc_error($odbc = null): string {} |
121 | 121 |
|
122 |
| -/** @param resource|null $connection_id */ |
123 |
| -function odbc_errormsg($connection_id = null): string {} |
| 122 | +/** @param resource|null $odbc */ |
| 123 | +function odbc_errormsg($odbc = null): string {} |
124 | 124 |
|
125 |
| -/** @param resource $conn_id */ |
126 |
| -function odbc_setoption($conn_id, int $which, int $option, int $value): bool {} |
| 125 | +/** @param resource $odbc */ |
| 126 | +function odbc_setoption($odbc, int $which, int $option, int $value): bool {} |
127 | 127 |
|
128 | 128 | /**
|
129 |
| - * @param resource $connection_id |
| 129 | + * @param resource $odbc |
130 | 130 | * @return resource|false
|
131 | 131 | */
|
132 |
| -function odbc_tables($connection_id, ?string $catalog = null, ?string $schema = null, ?string $name = null, ?string $table_types = null) {} |
| 132 | +function odbc_tables($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $types = null) {} |
133 | 133 |
|
134 | 134 | /**
|
135 |
| - * @param resource $connection_id |
| 135 | + * @param resource $odbc |
136 | 136 | * @return resource|false
|
137 | 137 | */
|
138 |
| -function odbc_columns($connection_id, ?string $catalog = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {} |
| 138 | +function odbc_columns($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $column = null) {} |
139 | 139 |
|
140 | 140 | /**
|
141 |
| - * @param resource $connection_id |
| 141 | + * @param resource $odbc |
142 | 142 | * @return resource|false
|
143 | 143 | */
|
144 |
| -function odbc_gettypeinfo($connection_id, int $data_type = 0) {} |
| 144 | +function odbc_gettypeinfo($odbc, int $data_type = 0) {} |
145 | 145 |
|
146 | 146 | /**
|
147 |
| - * @param resource $connection_id |
| 147 | + * @param resource $odbc |
148 | 148 | * @return resource|false
|
149 | 149 | */
|
150 |
| -function odbc_primarykeys($connection_id, ?string $catalog, string $schema, string $table) {} |
| 150 | +function odbc_primarykeys($odbc, ?string $catalog, string $schema, string $table) {} |
151 | 151 |
|
152 | 152 | #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
|
153 | 153 | /**
|
154 |
| - * @param resource $connection_id |
| 154 | + * @param resource $odbc |
155 | 155 | * @return resource|false
|
156 | 156 | */
|
157 |
| -function odbc_procedurecolumns($connection_id, ?string $catalog = null, ?string $schema = null, ?string $proc = null, ?string $column = null) {} |
| 157 | +function odbc_procedurecolumns($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null, ?string $column = null) {} |
158 | 158 |
|
159 | 159 | /**
|
160 |
| - * @param resource $connection_id |
| 160 | + * @param resource $odbc |
161 | 161 | * @return resource|false
|
162 | 162 | */
|
163 |
| -function odbc_procedures($connection_id, ?string $catalog = null, ?string $schema = null, ?string $name = null) {} |
| 163 | +function odbc_procedures($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null) {} |
164 | 164 |
|
165 | 165 | /**
|
166 |
| - * @param resource $connection_id |
| 166 | + * @param resource $odbc |
167 | 167 | * @return resource|false
|
168 | 168 | */
|
169 |
| -function odbc_foreignkeys($connection_id, ?string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table) {} |
| 169 | +function odbc_foreignkeys($odbc, ?string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table) {} |
170 | 170 | #endif
|
171 | 171 |
|
172 | 172 | /**
|
173 |
| - * @param resource $connection_id |
| 173 | + * @param resource $odbc |
174 | 174 | * @return resource|false
|
175 | 175 | */
|
176 |
| -function odbc_specialcolumns($connection_id, int $type, ?string $catalog, string $schema, string $table, int $scope, int $nullable) {} |
| 176 | +function odbc_specialcolumns($odbc, int $type, ?string $catalog, string $schema, string $table, int $scope, int $nullable) {} |
177 | 177 |
|
178 | 178 | /**
|
179 |
| - * @param resource $connection_id |
| 179 | + * @param resource $odbc |
180 | 180 | * @return resource|false
|
181 | 181 | */
|
182 |
| -function odbc_statistics($connection_id, ?string $catalog, string $schema, string $name, int $unique, int $accuracy) {} |
| 182 | +function odbc_statistics($odbc, ?string $catalog, string $schema, string $table, int $unique, int $accuracy) {} |
183 | 183 |
|
184 | 184 | #if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) &&!defined(HAVE_SOLID_35)
|
185 | 185 | /**
|
186 |
| - * @param resource $connection_id |
| 186 | + * @param resource $odbc |
187 | 187 | * @return resource|false
|
188 | 188 | */
|
189 |
| -function odbc_tableprivileges($connection_id, ?string $catalog, string $schema, string $name) {} |
| 189 | +function odbc_tableprivileges($odbc, ?string $catalog, string $schema, string $table) {} |
190 | 190 |
|
191 | 191 | /**
|
192 |
| - * @param resource $connection_id |
| 192 | + * @param resource $odbc |
193 | 193 | * @return resource|false
|
194 | 194 | */
|
195 |
| -function odbc_columnprivileges($connection_id, ?string $catalog, string $schema, string $table, string $column) {} |
| 195 | +function odbc_columnprivileges($odbc, ?string $catalog, string $schema, string $table, string $column) {} |
196 | 196 | #endif
|
0 commit comments