Skip to content

Instantly share code, notes, and snippets.

@pschyska
Created December 22, 2010 13:15
Show Gist options
  • Save pschyska/751484 to your computer and use it in GitHub Desktop.
Save pschyska/751484 to your computer and use it in GitHub Desktop.
private boolean isColumnTrimmable(int paramInt)
throws SQLException
{
switch (this.fields[(paramInt - 1)].getSQLType())
{
case -4:
case -3:
case -2:
case -1:
case 1:
case 12:
return true;
case 0:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment