aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpgtcl/pgtclCmds.c
Commit message (Collapse)AuthorAge
* Fix for libpgtcl from Constantin Teodorescu.Bruce Momjian1997-09-25
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-08
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-07
|
* From: Anton de Wet <adw@obsidian.co.za>Marc G. Fournier1997-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] Small patch to pgtclCmds.c Hi I have made the following small change to the extensions I made to pgtclCmds.c quite a while ago. At the moment there is a -assignbyidx option to pg_result assigning the returned tuples to an array by using the 1st field of the select statement as the key to the array. eg "select name,age from vitalstatistics" will result in an array with myarray(peter) = 32 myarray(paul) = 45 Often I need to have a pseudo-multi dimentional array eg. "select name,age from vitalstatistics where occupation='plummer' I would like to be able to generate an array newarray(peter,overpaid) = 32 So to add a arbitrary string to the key value I have extended pg_result $res -assignbyidx $arrayname to have an optional argument pg_result $res -assignbyidx $arrayname $appendstr So that that string is appended to the key value.
* The last patch fixes some incongruences in the #define used to compile theMarc G. Fournier1997-01-23
| | | | | | | Tcl arrays support. Here are the correct values to be defined in config.h and pgtclCmds.c. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
* Fixes:Marc G. Fournier1997-01-11
| | | | | | I forgot to clear out the variable created and the memory used. From: darcy@druid.net (D'Arcy J.M. Cain)
* From: darcy@druid.net (D'Arcy J.M. Cain)Marc G. Fournier1997-01-11
| | | | | | Fix for libpgtcl: I forgot to clear out the variable created and the memory used.
* someone added pg_listen and pg_notifies to libpgtcl. But firstMarc G. Fournier1997-01-03
| | | | | | | | | | | these routines try to use the old pointer casting stuff to get the connection id, second the notification hash table should be part of the cliendData. Otherwise, one interpreter might eat up the notifies for another one. Please apply the patch below to the current 6.0 tree. Submitted by: wieck@sapserv.debis.de
* Add two new comments to pglibtcl...Marc G. Fournier1996-12-19
| | | | From: Massimo Dal Zotto <dz@cs.unitn.it>
* Various cleanups from D'ArcyMarc G. Fournier1996-11-11
|
* Added in PQconnectdb() functionMarc G. Fournier1996-11-09
| | | | Submitted by: wieck@sapserv.debis.de (Jan Wieck)
* Changes to libpgtcl submitted by: wieck@sapserv.debis.de (Jan Wieck)Marc G. Fournier1996-10-30
| | | | | | | | | | | | | | | Adds: -lAttributes Returns another format of the results attribute list. Per attribute a sublist of {{attname} atttype attlen} is returned and an empty string if no attributes where received. -numAttrs Returns the number of attributes in the result.
* Well I haven't received any feedback pro or con re my suggested new TclMarc G. Fournier1996-10-07
| | | | | | | | | | | | | function so I am going to assume that it is such a good idea that no one sees any point in discussing it. :-) I have made two changes - I have merged this into pgtclCmds.c and I have taken out any code for updating tuples after the loop body runs. See comments for discussion of this. I have also fixed up the error checking stuff so that break, continue and syntax errors have the expected result. Submitted by: D'Arcy Cain
* I have made some corrections to my previous patches for retrieving arrayMarc G. Fournier1996-09-16
| | | | | | | attributes as tcl arrays. The previous code had problems with some chars used as delimiter by Tcl. The new code should be more robust. By: Massimo Dal Zotto <dz@cs.unitn.it>
* Last changes to src from Dr. George *wipes brow*Marc G. Fournier1996-07-23
|
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-09