Forum > Databases

[SOLVED] Conditional Defines in PQConnection.pp in branch fixes_3_2

(1/1)

chrisv5:
I have finally given up working around the countless bugs in PQConnection in FPC "stable". I had decided to start using fixes_3_2, but that has yet another problem:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---    {$IFNDEF VER3_2}    SEVERITY:=PQresultErrorField(res,PG_DIAG_SEVERITY);    SQLSTATE:=PQresultErrorField(res,PG_DIAG_SQLSTATE);    MESSAGE_PRIMARY:=PQresultErrorField(res,PG_DIAG_MESSAGE_PRIMARY);    MESSAGE_DETAIL:=PQresultErrorField(res,PG_DIAG_MESSAGE_DETAIL);    MESSAGE_HINT:=PQresultErrorField(res,PG_DIAG_MESSAGE_HINT);    STATEMENT_POSITION:=PQresultErrorField(res,PG_DIAG_STATEMENT_POSITION);    SCHEMA_NAME:=PQresultErrorField(res,PG_DIAG_SCHEMA_NAME);    TABLE_NAME:=PQresultErrorField(res,PG_DIAG_TABLE_NAME);    COLUMN_NAME:=PQresultErrorField(res,PG_DIAG_COLUMN_NAME);    DATATYPE_NAME:=PQresultErrorField(res,PG_DIAG_DATATYPE_NAME);    CONSTRAINT_NAME:=PQresultErrorField(res,PG_DIAG_CONSTRAINT_NAME);    {$ENDIF} 
Why is this important piece of code essentially commented out?

marcov:
I asked around, and some people used trunk fcl-db with FPC 3.2.2, and those tests got merged back to fixes 3.2.

I'll have a look and test if I can remove them in fixes tonight.

marcov:
Done

chrisv5:
Many, many thanks! Awesome service!

Navigation

[0] Message Index

Go to full version