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

Method TimeField

storage/connect/JdbcInterface.java:717–728  ·  view source on GitHub ↗
(int n, String name)

Source from the content-addressed store, hash-verified

715 } // end of DateField
716
717 public int TimeField(int n, String name) {
718 if (rs == null) {
719 System.out.println("No result set");
720 } else try {
721 Time t = (n > 0) ? rs.getTime(n) : rs.getTime(name);
722 return (t != null) ? (int)(t.getTime() / 1000) : 0;
723 } catch (SQLException se) {
724 SetErrmsg(se);
725 } //end try/catch
726
727 return 0;
728 } // end of TimeField
729
730 public int TimestampField(int n, String name) {
731 if (rs == null) {

Callers 1

PrintResultMethod · 0.80

Calls 2

SetErrmsgMethod · 0.95
getTimeMethod · 0.80

Tested by

no test coverage detected