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

Error in BLOBs of text type [DNET441] #437

Closed
firebird-automations opened this issue Jun 21, 2012 · 3 comments
Closed

Error in BLOBs of text type [DNET441] #437

firebird-automations opened this issue Jun 21, 2012 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: @cincuranet

//From mailing list.

Here is the code:

        DbProviderFactory dbf = DbProviderFactories\.GetFactory\("FirebirdSql\.Data\.FirebirdClient"\);
        DbConnection conn = dbf\.CreateConnection\(\);
        conn\.ConnectionString = connstr;
        conn\.Open\(\);
        DbCommand comm = dbf\.CreateCommand\(\);
        comm\.Connection = conn;
        comm\.CommandText =
            "INSERT INTO WITHBLOB \( ID, LONGTEXT \) VALUES \( 10, @LONGTEXT \)";
        DbParameter p = dbf\.CreateParameter\(\);
        p\.ParameterName = "@LONGTEXT";
        p\.DbType = DbType\.String;
        p\.Value = "Hello";
        comm\.Parameters\.Add\(p\);
        comm\.ExecuteNonQuery\(\);
        conn\.Close\(\);

The table WITHBLOB is defined as:

CREATE TABLE WITHBLOB
(
ID integer,
LONGTEXT blob sub_type 1
);

The error was:

"BLOB and array data types are not supported for move operation"

@firebird-automations
Copy link
Author

Modified by: @cincuranet

priority: Major [ 3 ] => Minor [ 4 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.6.5 [ 10400 ]

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

2 participants