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

Method SetUuidParm

storage/connect/JdbcInterface.java:238–254  ·  view source on GitHub ↗
(int i, String s)

Source from the content-addressed store, hash-verified

236 } // end of SetTimestampParm
237
238 public void SetUuidParm(int i, String s) {
239 try {
240 UUID uuid;
241
242 if (s == null)
243 uuid = null;
244 else if (s.isEmpty())
245 uuid = UUID.randomUUID();
246 else
247 uuid = UUID.fromString(s);
248
249 pstmt.setObject(i, uuid);
250 } catch (Exception e) {
251 SetErrmsg(e);
252 } // end try/catch
253
254 } // end of SetUuidParm
255
256 public int SetNullParm(int i, int typ) {
257 int rc = 0;

Callers

nothing calls this directly

Calls 1

SetErrmsgMethod · 0.95

Tested by

no test coverage detected