Why is my location on the world map determined incorrectly?
Hello!Just a question. What is wrong with this code? This...
Hello Guest
  
  • Login
• Register…
• Start blog
  • Кто, Где, Когда
• Что тут делать?
• Сообщества
  • Опросы
• Аватары
• Интересы
  • Редактор изображений new!
• Случайный дневник
• Поиск пользователей
  • Дуэли
• Желания
• Ссылки
  • Search
• Games
• Tests
• QAIX
  • Трансляции
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > PostgreSQL database development > Hello!Just a question. What is wrong with this code? This... 2 ноября 2009 г. 05:27:13

  Top users: 
  Рейтинг сообществ: 
  Advertising:
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Hello!Just a question. What is wrong with this code? This...

Guest 1 июня 2007 г. 10:56:52
 Hello!

Just a question. What is wrong with this code? This is part of trigger function:

attnum[3] = SPI_fnumber( tupdesc, "arfolyam" );
datums[3] = _selectFunctionB( "SELECT ertek FROM foo WHERE parameter='rate'" ); // This get back Datum type from select - PG_RETURN_FLOAT8( b ); is return where b is double type
arfolyam = DatumGetFloat8( datums[3] );
elog( INFO, "2.5.0 arfolyam = %f", arfolyam );
if ( attnum[3] == PointerGetDatum( NULL ) ) {
elog( ERROR, "Hianyzo arfolyam" );
SPI_finish();
return PointerGetDatum(NUL­L);
}
elog( INFO, "2.5.1 Datums[3] = %f", DatumGetFloat8( datums[3] ) );
rettuple = SPI_modifytuple( trigdata->tg_relati­on, tmptuple, 4, &attnum[0], &datums[0], &isNull[0] );
SPI_freetuple(tmptu­ple);
SPI_finish();
return PointerGetDatum( rettuple );


The output is the next after insert:
INFO: string vissza : 1.000000
INFO: 2.5.0 arfolyam = 1.000000
INFO: 2.5.1 Datums[3] = 1.000000
INSERT 0 1
ELES=# SELECT * FROM pgsor;
ERROR: invalid memory alloc request size 4294967293


Thanks in advance!
Josef Dudas
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > PostgreSQL database development > Hello!Just a question. What is wrong with this code? This... 2 ноября 2009 г. 05:27:13

see also:
pass tests:
wer
даже куклы умеют плакать (3 часть)
see also:
print a page without image and…
UK Web Design London, UK Flash Web…
Oracle Developer Suite 10g cannot be…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .