Forums


Aducom Software :: Forums :: Delphi SQLite Version 3.0.x Components :: Bugs/Enhancement requests
 
<< Voorgaande discussie | Volgende discussie >>
Problems with Blobs/Text
Ga naar pagina  [1] 2 3
Moderators: aducom, aducomadmin2
Auteur Bericht
bytesinmotion
di mei 09 2006, 02:11
Geregistreerde deelnemer #98
Geregistreerd: di aug 24 2004, 11:35
berichten: 20
Hi,

i habe some problems with Blobs/Text-Fields.
It all began with the problem, that the component doesn't return the values of VARCHAR fields with german "umlaute" like äüö. As soon as i enter one of this characters into a varchar field i get an empty result via Table and Query.

So i putted all text in a Text-Field. Here the äüö works!

But now i have another problem. Some times a row returns an empty result in the Text-Field and also in a BLOB image field. When i close the table and reopen it it works again.
This is no regular event. Sometimes all rows (ca. 10) will be returned correctly, sometimes one of them gets empty fields. It's not always the same row with the bug. It really gives bugs on random rows.

I use sqlite 3.3.4 and the latest stable unit.

Anyone seen this problem before ?
Terug omhoog
aducom
di mei 09 2006, 05:08

Geregistreerde deelnemer #1
Geregistreerd: wo jan 25 2006, 04:34
Woonplaats: groningen (NL)
berichten: 1561
Regarding the dyacritic characters i asume you have not set the utf8 encoding? This should do the trick.

The blob isue is unknown to me, what Delphi version are you using and could you show me the .schema of the table?

albert

albert
Terug omhoog
bytesinmotion
di mei 09 2006, 05:13
Geregistreerde deelnemer #98
Geregistreerd: di aug 24 2004, 11:35
berichten: 20
Regarding äöü:

I downloaded your sample. When i start your compiled Samples.Exe and insert in the simple-table this characters, then post. Close the programm and reopen the table it works fine.
But when i open the .dpr, compile the program with my delphi7, and then insert this characters it will be showed when i post it. Then i close the program and reopen the table and the whole field will not be displayed anymore. When i open the table with your compiled exe it works...

The blob/text-problem occurs on several similar tables. Here is one for example:

CREATE TABLE "sektor" (
"id" INTEGER PRIMARY KEY NOT NULL,
"sektor" INTEGER NULL,
"folge" INTEGER NULL,
"bezeichnung_d" TEXT NULL,
"bezeichnung_e" TEXT NULL,
"langtext_d" TEXT NULL,
"langtext_e" TEXT NULL,
"picture" BLOB NULL
)
Terug omhoog
bytesinmotion
di mei 09 2006, 06:02
Geregistreerde deelnemer #98
Geregistreerd: di aug 24 2004, 11:35
berichten: 20
You can find a complete demo-project here:

link

It contains my database, my sqlite3.dll, a compiled exe and the demoproject.

You will see that sometimes it returns empty fields, sometimes it works perfect. Just click the "reopen-table" button several times and you will notice the bug.

Thank you for your help!
Terug omhoog
aducom
di mei 09 2006, 06:32

Geregistreerde deelnemer #1
Geregistreerd: wo jan 25 2006, 04:34
Woonplaats: groningen (NL)
berichten: 1561
Actually I cannot run your sample due to a component set i dont have/use. I remodified your sample a bit using standard components and can't find problems at first sight...

albert

albert
Terug omhoog
aducom
di mei 09 2006, 06:34

Geregistreerde deelnemer #1
Geregistreerd: wo jan 25 2006, 04:34
Woonplaats: groningen (NL)
berichten: 1561
In addition, in your sample you have not set the UTF8 encoding. I recommend you set this and go back to varchar where possible.
Albert

albert
Terug omhoog
aducom
di mei 09 2006, 06:46

Geregistreerde deelnemer #1
Geregistreerd: wo jan 25 2006, 04:34
Woonplaats: groningen (NL)
berichten: 1561
I have been able to reproduce the problem. I'll try to fix it.

albert

albert
Terug omhoog
bytesinmotion
di mei 09 2006, 06:48
Geregistreerde deelnemer #98
Geregistreerd: di aug 24 2004, 11:35
berichten: 20
Great !

The blob bug ?
Terug omhoog
aducom
di mei 09 2006, 07:49

Geregistreerde deelnemer #1
Geregistreerd: wo jan 25 2006, 04:34
Woonplaats: groningen (NL)
berichten: 1561
Unfortunately no. I even haven't reproduced it as i thought earlier. You database field 'bild' was empty after a few rows. I cannot load you binary data as an image. The TDBImage generates an error. I don't have the quantumgrid available here, so I cannot reproduce. My sample app works as expected....

albert
Terug omhoog
bytesinmotion
di mei 09 2006, 07:54
Geregistreerde deelnemer #98
Geregistreerd: di aug 24 2004, 11:35
berichten: 20
That's because it's a JPEGImage.
But the problem also occurs with the Memo-Field. You can see it with a standard grid also. Just look at the fields langtext_d and picture.

When you refresh you will see that some times both fields are with data on all rows and some times there is one ore more fields without data (delphi will write Memo instead of MEMO and Blob instead of BLOB).
Terug omhoog
Ga naar pagina  [1] 2 3  

Ga naar:     Terug omhoog

Publiceer deze discussie: RSS 0.92 Publiceer deze discussie: RSS 2.0 Publiceer deze discussie: RDF
Powered by e107 Forum System