[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
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
Medium Priority
?
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 150 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

656 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