Board index » delphi » Interbase: conversion error from string "BLOB"

Interbase: conversion error from string "BLOB"

I use Delphi 5 (upd 1) + Interbase 5.6 + IBX Update 4.1 and I have the
follow problem:

I have defined in a table a blob field (subtype "text"). If i insert
this field in the following SQL I get the Error-Message 'conversion
error from string "BLOB"'.

select progetti.id id,
         progetti.nome descrizione,
         progetti.stato codstatus,
         status.descrizione status,
         progetti.utente codutente,
         utenti.nome utente,
         progetti.inizio inizio,
         progetti.fine fine,
         progetti.cliente codcli,
         clienti.nome1 cliente,
         progetti.priorita priorita,
         min(progetti.descrizione) testo,    <- this is the blob-text
field.
         sum(attivita.ore) tempo,
         sum(attivita.costo) costo
from progetti left outer join attivita on attivita.progetto =
progetti.id, status, clienti, utenti
where status.id = progetti.stato
  and utenti.id = progetti.utente
  and clienti.id = progetti.cliente
group by progetti.id,
              progetti.nome,
              progetti.stato,
              status.descrizione,
              progetti.utente,
              utenti.nome,
              progetti.inizio,
              progetti.fine,
              progetti.cliente,
              clienti.nome1,
              progetti.priorita

The Text of the table-creation is:

CREATE TABLE PROGETTI (
  ID D_NUM_POS NOT NULL,
  NOME D_DESCRIZIONE NOT NULL,
  STATO D_NUM_POS NOT NULL,
  UTENTE D_NUM_POS,
  INIZIO DATE,
  FINE DATE,
  CLIENTE D_NUM_POS,
  DESCRIZIONE BLOB SUB_TYPE 1 SEGMENT SIZE 80,
  ORE D_TEMPO DEFAULT 0,
  COSTO D_VAL_POS DEFAULT 0,
  PRIORITA D_PRORITA DEFAULT 0 NOT NULL
)

Have you an Idea?

THX 4 help!!! :o)

 

Re:Interbase: conversion error from string "BLOB"


How can you find the minimum of a string? I think you are asking for a math
conversion which is impossible from a string (blob)
Alan

Quote
Mirko Cutri <mirko.cu...@wuerth.it> wrote in message

news:391AC10D.920FFB90@wuerth.it...
Quote
> I use Delphi 5 (upd 1) + Interbase 5.6 + IBX Update 4.1 and I have the
> follow problem:

> I have defined in a table a blob field (subtype "text"). If i insert
> this field in the following SQL I get the Error-Message 'conversion
> error from string "BLOB"'.

> select progetti.id id,
>          progetti.nome descrizione,
>          progetti.stato codstatus,
>          status.descrizione status,
>          progetti.utente codutente,
>          utenti.nome utente,
>          progetti.inizio inizio,
>          progetti.fine fine,
>          progetti.cliente codcli,
>          clienti.nome1 cliente,
>          progetti.priorita priorita,
>          min(progetti.descrizione) testo,    <- this is the blob-text
> field.
>          sum(attivita.ore) tempo,
>          sum(attivita.costo) costo
> from progetti left outer join attivita on attivita.progetto =
> progetti.id, status, clienti, utenti
> where status.id = progetti.stato
>   and utenti.id = progetti.utente
>   and clienti.id = progetti.cliente
> group by progetti.id,
>               progetti.nome,
>               progetti.stato,
>               status.descrizione,
>               progetti.utente,
>               utenti.nome,
>               progetti.inizio,
>               progetti.fine,
>               progetti.cliente,
>               clienti.nome1,
>               progetti.priorita

> The Text of the table-creation is:

> CREATE TABLE PROGETTI (
>   ID D_NUM_POS NOT NULL,
>   NOME D_DESCRIZIONE NOT NULL,
>   STATO D_NUM_POS NOT NULL,
>   UTENTE D_NUM_POS,
>   INIZIO DATE,
>   FINE DATE,
>   CLIENTE D_NUM_POS,
>   DESCRIZIONE BLOB SUB_TYPE 1 SEGMENT SIZE 80,
>   ORE D_TEMPO DEFAULT 0,
>   COSTO D_VAL_POS DEFAULT 0,
>   PRIORITA D_PRORITA DEFAULT 0 NOT NULL
> )

> Have you an Idea?

> THX 4 help!!! :o)

Other Threads