Erro Sum com TBCDField

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
macario
Posts: 1
Joined: Tue 29 Aug 2006 14:41

Erro Sum com TBCDField

Post by macario » Tue 29 Aug 2006 14:46

Olá.

Estou usando Delphi 6, MSSQL2000 e dbexpsda versao 2.50.5.0.

Estou com problemas usando a clausula SUM com campos numeric(12,3)


Exemplo.


select sum(VALOR) as Total from Tabela.


Gera o seguinte erro: "Privileged Instruction".

Grato pela atenção.






:roll:

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 31 Aug 2006 12:40

Unfortunately we could not reproduce the problem.
Please send us (evgeniyD*crlab*com) a complete small sample to demonstrate
it, including script to create and fill table.

Please post your messages on this forum in English in the future.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 31 Aug 2006 12:55

What the result is if you convert value to string on the server using CAST function? For example:

Code: Select all

SELECT CAST(SUM(VALOR) AS VARCHAR(50)) AS Total FROM Tabela

Post Reply