aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/windev/tuple.c
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2002-01-11 06:01:47 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2002-01-11 06:01:47 +0000
commitd91b4451175dcd1996e8b5fdaa375d2bcf74d9a5 (patch)
tree2102451d41d2932d3a5ccd870407e1d25a35854c /src/interfaces/odbc/windev/tuple.c
parent3b3b73072859a2b465e4c392abcb954626507856 (diff)
downloadpostgresql-d91b4451175dcd1996e8b5fdaa375d2bcf74d9a5.tar.gz
postgresql-d91b4451175dcd1996e8b5fdaa375d2bcf74d9a5.zip
*** empty log message ***
Diffstat (limited to 'src/interfaces/odbc/windev/tuple.c')
-rw-r--r--src/interfaces/odbc/windev/tuple.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/interfaces/odbc/windev/tuple.c b/src/interfaces/odbc/windev/tuple.c
deleted file mode 100644
index 512f36d2b23..00000000000
--- a/src/interfaces/odbc/windev/tuple.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/*-------
- * Module: tuple.c
- *
- * Description: This module contains functions for setting the data
- * for individual fields (TupleField structure) of a
- * manual result set.
- *
- * Important Note: These functions are ONLY used in building manual
- * result sets for info functions (SQLTables,
- * SQLColumns, etc.)
- *
- * Classes: n/a
- *
- * API functions: none
- *
- * Comments: See "notice.txt" for copyright and license information.
- *-------
- */
-
-#include "tuple.h"
-
-#include <string.h>
-#include <stdlib.h>
-
-
-void
-set_tuplefield_null(TupleField *tuple_field)
-{
- tuple_field->len = 0;
- tuple_field->value = NULL; /* strdup(""); */
-}
-
-
-void
-set_tuplefield_string(TupleField *tuple_field, char *string)
-{
- tuple_field->len = strlen(string);
- tuple_field->value = malloc(strlen(string) + 1);
- strcpy(tuple_field->value, string);
-}
-
-
-void
-set_tuplefield_int2(TupleField *tuple_field, Int2 value)
-{
- char buffer[10];
-
- sprintf(buffer, "%d", value);
-
- tuple_field->len = strlen(buffer) + 1;
- /* +1 ... is this correct (better be on the save side-...) */
- tuple_field->value = strdup(buffer);
-}
-
-
-void
-set_tuplefield_int4(TupleField *tuple_field, Int4 value)
-{
- char buffer[15];
-
- sprintf(buffer, "%ld", value);
-
- tuple_field->len = strlen(buffer) + 1;
- /* +1 ... is this correct (better be on the save side-...) */
- tuple_field->value = strdup(buffer);
-}