MCPcopy Create free account
hub / github.com/MariaDB/server / CreatePrepStmt

Method CreatePrepStmt

storage/connect/JdbcInterface.java:159–173  ·  view source on GitHub ↗
(String sql)

Source from the content-addressed store, hash-verified

157
158
159 public int CreatePrepStmt(String sql) {
160 int rc = 0;
161
162 try {
163 pstmt = conn.prepareStatement(sql);
164 } catch (SQLException se) {
165 SetErrmsg(se);
166 rc = -1;
167 } catch (Exception e) {
168 SetErrmsg(e);
169 rc = -2;
170 } // end try/catch
171
172 return rc;
173 } // end of CreatePrepStmt
174
175 public void SetStringParm(int i, String s) {
176 try {

Callers

nothing calls this directly

Calls 1

SetErrmsgMethod · 0.95

Tested by

no test coverage detected