Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
[SOLVED] Conditional Defines in PQConnection.pp in branch fixes_3_2
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
TStringGrid Question
by
J-G
[
Today
at 04:03:48 pm]
Very rough version of a s...
by
marcov
[
Today
at 03:56:13 pm]
Lazarus Main and Gnome/Wa...
by
zeljko
[
Today
at 03:48:06 pm]
Benchmark: converting arr...
by
LemonParty
[
Today
at 03:25:25 pm]
FPC Unleashed (inline var...
by
Thaddy
[
Today
at 03:15:25 pm]
Read/Parse PDB file to ge...
by
marcov
[
Today
at 02:48:12 pm]
Array of structure -> str...
by
LemonParty
[
Today
at 11:34:18 am]
[SOVLED]Curved text in La...
by
paweld
[
Today
at 11:00:52 am]
Fast Canvas Library V1.05...
by
microxa
[
Today
at 07:03:07 am]
"Identifier idents no mem...
by
Thaddy
[
Today
at 05:43:52 am]
[SOLVED] TPrintDialog Pro...
by
spuds
[
Today
at 01:30:20 am]
TPairsplitter could be be...
by
jamie
[
Today
at 12:36:34 am]
FloatToStr issue
by
J-G
[
Today
at 12:06:38 am]
Release ray4laz 6.0
by
Fred vS
[June 05, 2026, 09:06:27 pm]
Pascal for AI Agent CLI T...
by
Martin_fr
[June 05, 2026, 08:01:11 pm]
storing assets for releas...
by
flowCRANE
[June 05, 2026, 07:30:13 pm]
Benchmark aligned vs unal...
by
LeP
[June 05, 2026, 06:33:08 pm]
TstringGrid read cell col...
by
hedgehog
[June 05, 2026, 06:29:11 pm]
Range checks and `Move` o...
by
ASerge
[June 05, 2026, 05:17:19 pm]
Why is var after type in ...
by
Warfley
[June 05, 2026, 02:36:17 pm]
SnapModbus
by
ThomasK
[June 05, 2026, 01:40:22 pm]
Spell checking for IDE so...
by
Martin_fr
[June 05, 2026, 11:48:38 am]
Fix alt+letter dont show ...
by
mpau
[June 05, 2026, 04:02:50 am]
Conscious Artificial Inte...
by
schuler
[June 04, 2026, 11:14:34 pm]
LazNodeEditor (visual nod...
by
simone
[June 04, 2026, 08:05:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Conditional Defines in PQConnection.pp in branch fixes_3_2 (Read 912 times)
chrisv5
Newbie
Posts: 4
[SOLVED] Conditional Defines in PQConnection.pp in branch fixes_3_2
«
on:
February 09, 2024, 04:07:35 pm »
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
[Select]
[+]
[-]
{$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?
«
Last Edit: February 10, 2024, 11:18:24 am by chrisv5
»
Logged
marcov
Administrator
Hero Member
Posts: 12891
FPC developer.
Re: Conditional Defines in PQConnection.pp in branch fixes_3_2
«
Reply #1 on:
February 09, 2024, 05:24:27 pm »
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.
Logged
marcov
Administrator
Hero Member
Posts: 12891
FPC developer.
Re: Conditional Defines in PQConnection.pp in branch fixes_3_2
«
Reply #2 on:
February 09, 2024, 06:40:22 pm »
Done
Logged
chrisv5
Newbie
Posts: 4
Re: Conditional Defines in PQConnection.pp in branch fixes_3_2
«
Reply #3 on:
February 09, 2024, 07:01:40 pm »
Many, many thanks! Awesome service!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
[SOLVED] Conditional Defines in PQConnection.pp in branch fixes_3_2
TinyPortal
© 2005-2018