Skip to content

Commit

Permalink
fix escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensel committed Jun 26, 2009
1 parent 7d35984 commit 451741f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/java/cascading/jdbc/asterdata/AsterDataScheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ protected Tuple cleanTuple( Tuple result )

if( value instanceof String )
{
result.set( i, ( (String) value ).replaceAll( "'", "''" ) );
result.set( i, ( (String) value ).replaceAll( "\n", "\\n" ) );
value = ( (String) value ).replaceAll( "'", "''" );
value = ( (String) value ).replaceAll( "\t", "\\t" );
value = ( (String) value ).replaceAll( "\n", "\\n" );
result.set( i, value );
}
}

Expand Down

0 comments on commit 451741f

Please sign in to comment.