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

Method TimestampField

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

Source from the content-addressed store, hash-verified

728 } // end of TimeField
729
730 public int TimestampField(int n, String name) {
731 if (rs == null) {
732 System.out.println("No result set");
733 } else try {
734 Timestamp ts = (n > 0) ? rs.getTimestamp(n) : rs.getTimestamp(name);
735 return (ts != null) ? (int)(ts.getTime() / 1000) : 0;
736 } catch (SQLException se) {
737 SetErrmsg(se);
738 } //end try/catch
739
740 return 0;
741 } // end of TimestampField
742
743 public Object ObjectField(int n, String name) {
744 if (rs == null) {

Callers 1

PrintResultMethod · 0.80

Calls 2

SetErrmsgMethod · 0.95
getTimeMethod · 0.80

Tested by

no test coverage detected