PL/Ruby timestamp problem

Поиск
Список
Период
Сортировка
Искать

PL/Ruby timestamp problem

От:
Anton Nikiforov <anton@nikiforov.ru>
Дата:
Вложения:
Dear All!
I have the following problem programming PL/Ruby trigger function
The function looks like:
CREATE OR REPLACE FUNCTION control.function_log() RETURNS TRIGGER 
SECURITY INVOKER AS '
	data = "\n"
  	ccurrent_time = PLruby.exec("select now()",1,"value")
		data += "\t\n"
	data += "\t\n"
..........
	PL::OK
' LANGUAGE 'plruby';

This is a strange thing but i expect to get current time but got:



..........

Is this PostgreSQL/Ruby or "device my_hands" problem? And in case the 
answer is not the last from the list - could someone please help with 
the solution?

-- 
Best regards,
Anton Nikiforov
FAQ