File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
reference/sqlite3/sqlite3stmt Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 99
99
</varlistentry >
100
100
</variablelist >
101
101
</para >
102
-
103
102
</refsect1 >
104
103
105
104
<refsect1 role =" returnvalues" >
110
109
</para >
111
110
</refsect1 >
112
111
112
+ <refsect1 role =" notes" ><!-- {{{ -->
113
+ &reftitle.notes;
114
+ <caution >
115
+ <para >
116
+ <methodname >SQLite3Stmt::reset</methodname > must be called after the first call to
117
+ <methodname >SQLite3Stmt::execute</methodname > if you want to see the bound value
118
+ updated on following calls to <methodname >SQLite3Stmt::execute</methodname >.
119
+ If <methodname >SQLite3Stmt::reset</methodname > is not called, the bound value will
120
+ not change, even if the value assigned to the variable passed to
121
+ <methodname >SQLite3Stmt::bindParam</methodname > has changed.
122
+ </para >
123
+ </caution >
124
+ </refsect1 ><!-- }}} -->
125
+
113
126
<refsect1 role =" examples" >
114
127
&reftitle.examples;
115
128
<para >
Original file line number Diff line number Diff line change 18
18
<para >
19
19
Binds the value of a parameter to a statement variable.
20
20
</para >
21
+ <para >
22
+ Once the statement has been executed, <methodname >SQLite3Stmt::reset</methodname >
23
+ needs to be called to be able to change the value of bound parameters.
24
+ </para >
21
25
</refsect1 >
22
26
23
27
<refsect1 role =" parameters" >
Original file line number Diff line number Diff line change 14
14
<void />
15
15
</methodsynopsis >
16
16
<para >
17
- Clears all current bound parameters.
17
+ Clears all current bound parameters (sets them to &null; ) .
18
18
</para >
19
+ <caution >
20
+ <para >
21
+ This method needs to be used with <methodname >SQLite3Stmt::reset</methodname >.
22
+ If used alone, any call to
23
+ <methodname >SQLite3Stmt::bindValue</methodname > or
24
+ <methodname >SQLite3Stmt::bindParam</methodname > will be of no effect
25
+ and all bound parameters will have the &null; value.
26
+ </para >
27
+ </caution >
19
28
</refsect1 >
20
29
21
30
<refsect1 role =" parameters" >
You can’t perform that action at this time.
0 commit comments