(int n, String name)
| 702 | } // end of BooleanField |
| 703 | |
| 704 | public int DateField(int n, String name) { |
| 705 | if (rs == null) { |
| 706 | System.out.println("No result set"); |
| 707 | } else try { |
| 708 | Date d = (n > 0) ? rs.getDate(n) : rs.getDate(name); |
| 709 | return (d != null) ? (int)(d.getTime() / 1000) : 0; |
| 710 | } catch (SQLException se) { |
| 711 | SetErrmsg(se); |
| 712 | } //end try/catch |
| 713 | |
| 714 | return 0; |
| 715 | } // end of DateField |
| 716 | |
| 717 | public int TimeField(int n, String name) { |
| 718 | if (rs == null) { |
no test coverage detected