| | |
postgres server function
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2006
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I need to use function:
SPI_modifytuple
HeapTuple SPI_modifytuple(Relation rel, HeapTuple row, ncols, colnum, Datum * values, const char * nulls)
How can I get object Relation?
If I insert NULL as relation function does not modify tuples.
I have found an example, when the function was called by trigger.
Relation rel;
TriggerData *trigdata = (TriggerData *) fcinfo->context;
rel = trigdata->tg_relation;
Maybe it works fine with trigger, but I am calling myFunction from sql like:
select myFunction();
How to get Relation?
Can anybody help me?
Regards,
Maciej Banasiak
I need to use function:
SPI_modifytuple
HeapTuple SPI_modifytuple(Relation rel, HeapTuple row, ncols, colnum, Datum * values, const char * nulls)
How can I get object Relation?
If I insert NULL as relation function does not modify tuples.
I have found an example, when the function was called by trigger.
Relation rel;
TriggerData *trigdata = (TriggerData *) fcinfo->context;
rel = trigdata->tg_relation;
Maybe it works fine with trigger, but I am calling myFunction from sql like:
select myFunction();
How to get Relation?
Can anybody help me?
Regards,
Maciej Banasiak
Your best bet would probably be in the documentation for that function.
I'd have to start here.
http://www.google.com/search?q=SPI_m...PI_modifytuple
I'd have to start here.
http://www.google.com/search?q=SPI_m...PI_modifytuple
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- help: web server application (C++)
- connect one server from another server through script (PHP)
- modem connection question... (OS X)
- 35 processes, need to trim the fat (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: C++ Builder 6 - DateTimePicker
- Next Thread: Change text colour in console
Views: 1010 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui iamthwee ifstream input int integer java lib library linkedlist linker linux loop looping loops map math matrix memory microsoft newbie news number output parameter pointer problem program programming project python random read recursion recursive reference return sort stream string strings struct studio system template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






