Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket closed error while excuting a good number of queries from Stored Procedure #100

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I have to save an image to database in encoded string format. After
creating the encoded string for image, I am executing multiple insert
queries in multiple rows.
2. Stored procedure query :
IN daybookImageSrc MEDIUMTEXT; //encoded image string passes as parameter
TRUNCATE TABLE daybookimage; //table having data column of type varchar(20480) 

    SET data = SUBSTR(daybookImageSrc,1,20480);
    WHILE LENGTH(data) > 0 DO
        INSERT INTO daybookimage SET daybookimage.data = data;
        SET daybookImageSrc = SUBSTR(daybookImageSrc,20480);
        SET data = SUBSTR(daybookImageSrc,1,20480);
    END WHILE;
3. Socket closed automatically and generate socket closed Error for large
size image like wallpapers(1024X768). However it is working fine with small
size images.

What is the expected output? What do you see instead?
Large size images should be saved without any error. 

What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Apr 2010 at 10:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant