Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

To fix postgres column renaming.

  • Loading branch information...
commit a051e31700c5ff82c30db9568f4546a84ee4311c 1 parent 1b225ea
paca70 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
View
2  lib/datalib.php
@@ -135,8 +135,8 @@ function table_column($table, $oldfield, $field, $type="integer", $size="10",
$dbinfo = $db->ServerInfo();
$dbver = substr($dbinfo['version'],0,3);
- $field = "$field";
//to prevent conflicts with reserved words
+ $field = "\"$field\"";
$oldfield = "\"$oldfield\"";
switch (strtolower($type)) {

0 comments on commit a051e31

Please sign in to comment.
Something went wrong with that request. Please try again.