/*
 * Copyright (c) 2009-2013 Topi Nieminen
 */
/**
 * 
 */
package fi.tnie.db;

import java.sql.ResultSet;
import java.sql.SQLException;

import fi.tnie.db.rpc.DoubleHolder;
import fi.tnie.db.types.DoubleType;

public class DoubleExtractor
	extends ValueExtractor<Double, DoubleType, DoubleHolder>
{
	public DoubleExtractor(int column) {
		super(column);			
	}

	@Override
	public DoubleHolder extractValue(ResultSet rs) throws SQLException {
		int v = rs.getInt(getColumn());
		return rs.wasNull() ? DoubleHolder.NULL_HOLDER : DoubleHolder.valueOf(v);			
	}
	
}
@@ -439,19 +439,22 @@
 ion %7B%0A%09%09
-int
+double
  v = rs.
@@ -460,11 +460,14 @@
 .get
-Int
+Double
 (get

Fix bug in DoubleExtractor.extractValue