Solved

Why after updating the record which has a "Text" field, it shows: "Invalid BLOB handle in record Buffer."

Posted on 2004-09-01
3
228 Views
Last Modified: 2010-04-05
I am using mySQL server as database.  I display the company info which has a text field(BLob) in a form. First it's ok, but when I update or insert a record in the table and display it again. It shows:"Invalid BLOB handle in record Buffer.". Can you help me? How to solve this?

My Table: CREATE TABLE Company (
                    CompanyID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
                    CompanyName VARCHAR(80) NULL,
                    Notes TEXT NULL,
                    PRIMARY KEY(CompanyID)
                   );

Display: CompanyQuery.SQL.text:='select * from company'
           Two components in the form, one is Edit, The other is Memo for the text field.
               CompanyNameEdit.Text:=CompanyQuery.FieldByName('CompanyName').asstring;
               NotesMemo1.Text:=CompanyQuery.FieldByName('Notes').AsString;

Update:      s:='Update Company set '
                  + 'CompanyName="'+CompanyNameEdit.Text+'",'
                  + 'Notes="'+NotesMemo1.Text+'" '
                  + 'Where CompanyID='+CompanyQuery.FieldByName('CompanyID').AsString;
0
Comment
Question by:adamy
  • 2
3 Comments
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 11953635
are you using BDE?
if you are:
- what version are you using?
- have you tried changing the BLOBS TO CACHE in the BDE administrator?
0
 
LVL 1

Author Comment

by:adamy
ID: 11954043
Yes, I am using BDE v5.01. What should I change 'BLOBS TO CACHE' to?
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 50 total points
ID: 11956262
just a bigger number of what you have right now... how many records to you request in a query?
you want to put as many records as you would retrieve in a query
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now