<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>I&#8217;ve been trying to install wifidog on my debian box
but I get this error during installation process at Database installation
specifically:<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.5pt;font-family:"Verdana","sans-serif";color:black'>execSqlUpdate():
SQL Query : <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>BEGIN;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>UPDATE schema_info SET value='62' WHERE tag='schema_version';<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>ALTER TABLE networks ALTER COLUMN
connection_limit_network_max_total_bytes TYPE bigint;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>ALTER TABLE networks ALTER COLUMN
connection_limit_node_max_total_bytes TYPE bigint;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>ALTER TABLE nodes ALTER COLUMN
connection_limit_node_max_total_bytes_override TYPE bigint;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>COMMIT;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.5pt;font-family:"Verdana","sans-serif";
color:black'><br>
<b>Warning</b>: pg_affected_rows(): supplied argument is not a valid PostgreSQL
result resource in <b>/var/www/wifidog-auth/wifidog/classes/AbstractDb.php</b>
on line <b>484</b><o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.5pt;font-family:"Verdana","sans-serif";color:black'>0 rows
affected by the SQL query.<br>
Elapsed time for query execution : 0.001700 second(s)<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.5pt;font-family:"Verdana","sans-serif";color:black'>execSqlUpdate()
: An error occured while executing the following SQL query :<br>
BEGIN; UPDATE schema_info SET value='62' WHERE tag='schema_version'; ALTER
TABLE networks ALTER COLUMN connection_limit_network_max_total_bytes TYPE
bigint; ALTER TABLE networks ALTER COLUMN connection_limit_node_max_total_bytes
TYPE bigint; ALTER TABLE nodes ALTER COLUMN
connection_limit_node_max_total_bytes_override TYPE bigint; COMMIT; <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.5pt;font-family:"Verdana","sans-serif";color:black'>Error
message : <br>
ERROR: syntax error at or near &quot;TYPE&quot; at character 147<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.5pt;font-family:"Verdana","sans-serif";color:black'>Backtrace:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>#0
/var/www/wifidog-auth/wifidog/include/schema_validate.php(1441):
AbstractDb-&gt;execSqlUpdate()<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>#1 /var/www/wifidog-auth/wifidog/include/schema_validate.php(161):
real_update_schema()<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>#2 /var/www/wifidog-auth/wifidog/include/schema_validate.php(83):
update_schema()<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>#3 /var/www/wifidog-auth/wifidog/install.php(664):
validate_schema()<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-size:14.5pt;font-family:"Verdana","sans-serif";color:#666666'>Update
to schema 62 failed!<o:p></o:p></span></b></p>

<p class=MsoNormal>Any suggestions? <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;
color:#1F497D'>Allan Martínez<o:p></o:p></span></p>

</div>

</body>

</html>