Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
A little tip
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
PopupMenu on dock menu
by
wp
[
Today
at 04:13:34 pm]
FPC Unleashed (inline var...
by
Okoba
[
Today
at 03:49:31 pm]
Can I enter MySQL prompt ...
by
nikel
[
Today
at 03:41:56 pm]
is this code correct?
by
Thaddy
[
Today
at 03:23:29 pm]
When will lazarus actuall...
by
Thaddy
[
Today
at 03:09:44 pm]
Anubis's website security...
by
ALLIGATOR
[
Today
at 02:45:52 pm]
Pure Pascal LZ4, LZ5 and ...
by
LemonParty
[
Today
at 01:38:07 pm]
Linking a PortAudio stati...
by
Thaddy
[
Today
at 10:52:31 am]
TShellTreeView TopItem
by
Paolo
[
Today
at 10:07:58 am]
Temp file CGI00000.TMP
by
Thaddy
[
Today
at 09:32:16 am]
Nothing but chaotic attem...
by
LeP
[
Today
at 09:02:05 am]
Feature suggestion - repe...
by
paweld
[
Today
at 07:38:10 am]
search via TSQLQuery
by
paweld
[
Today
at 07:28:41 am]
Amigo programming languag...
by
paxscript
[
Today
at 05:49:02 am]
Klondike solitaire Part 2
by
valdir.marcos
[
Today
at 03:50:07 am]
Creation of LAMW [NoGUI] ...
by
neuro
[
Today
at 01:06:41 am]
wildcard utilities list
by
mas steindorff
[
Today
at 12:22:21 am]
Artificial Intelligence a...
by
LeP
[May 16, 2026, 06:15:13 pm]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[May 16, 2026, 04:39:24 pm]
Read/Parse PDB file to ge...
by
LeP
[May 16, 2026, 04:12:58 pm]
Dark Theme
by
NickyTi
[May 16, 2026, 04:11:34 pm]
StringGrid: which is "cur...
by
jamie
[May 16, 2026, 04:10:34 pm]
Can /my/ AI help me with ...
by
microxa
[May 16, 2026, 03:51:48 pm]
Database files reader. Di...
by
valdir.marcos
[May 16, 2026, 02:33:27 pm]
AdvancedHTTPServer: A Go-...
by
valdir.marcos
[May 16, 2026, 02:32:51 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: A little tip (Read 3095 times)
lucabertoncini
New Member
Posts: 12
A little tip
«
on:
August 19, 2015, 05:20:41 pm »
This morning I needed to modify TODBCConnection in the unit odbcconn.pas. The problem was that it didn't know a field type (BLOB) retrieved from an IBM DB2 database. I simply added that when a field type is unknown it must be considered as BLOB and this trick worked well. To use this feature, I had to rebuild fpc. What about add a boolean property that lets us choose if an unknown field type must be equivalent to a blob field?
Logged
jc99
Hero Member
Posts: 553
Re: A little tip
«
Reply #1 on:
August 19, 2015, 08:46:28 pm »
I don't think such a property would be satisfying.
The better alternative here would be a OnUnknownFieldType-Handler with a FieldType (as var) and Fieldname, and maybe some other infos.
So the programmer can choose what to do, and when.
Logged
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~| /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
A little tip
TinyPortal
© 2005-2018