Skip to content

Commit

Permalink
refs #1052
Browse files Browse the repository at this point in the history
 * PostgreSQL의 field quotation 함수 작성
  • Loading branch information
textcube-dev committed Aug 7, 2008
1 parent 4d7f118 commit 7ea782c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/data/postgresql/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public static function escapeString($var)

public static function escapeFieldName($var)
{
// TODO: how to do this in psql?
return $var;
if (is_array($var))
return array_map(array('PSQLAdapter', 'escapeFieldName'), $var);
else
return '"'.$var.'"'
}
}

Expand Down

0 comments on commit 7ea782c

Please sign in to comment.