Skip to content

Commit

Permalink
fast convert to string
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Apr 19, 2015
1 parent 8803b4a commit 44760dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dpq2/answer.d
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ struct Value
@property T as(T)() const
if(is(T == string))
{
import std.utf: toUTF8;

return toUTF8(cast(const(char[])) value);
return cast(const(char[])) value;
}

/// Returns cell value as native integer or decimal values
Expand Down

0 comments on commit 44760dc

Please sign in to comment.