-
+
EXEC SQL DESCRIBE mystmt INTO sqlda;
- printf("# of fields: %d\n", sqlda->sqld);
- for (i = 0; i < sqlda->sqld; i++)
- printf("field %d: \"%s\"\n", sqlda->sqlvar[i]->sqlname);
+ printf("# of fields: %d\n", sqlda->sqld);
+ for (i = 0; i < sqlda->sqld; i++)
+ printf("field %d: \"%s\"\n", sqlda->sqlvar[i]->sqlname);
EXEC SQL DECLARE mycursor CURSOR FOR mystmt;
EXEC SQL OPEN mycursor;
EXEC SQL CLOSE mycursor;
free(sqlda); /* The main structure is all to be free(),
- * sqlda and sqlda->sqlvar is in one allocated area */
+ * sqlda and sqlda->sqlvar is in one allocated area */
For more information, see the sqlda.h> header and the
src/interfaces/ecpg/test/compat_informix/sqlda.pgc regression test.
-
+
hstore
hstore> has GiST and GIN index support for the @>>,
- ?>, ?&> and ?|> operators. For example:
+ ?>, ?&> and ?|> operators. For example:
CREATE INDEX hidx ON testhstore USING GIST (h);
For example, you can specify a constraint that
no two rows in the table contain overlapping circles
(see ) by using the
- &&> operator.
+ &&> operator.
CREATE TABLE circles (
c circle,
- EXCLUDE USING gist (c WITH &&)
+ EXCLUDE USING gist (c WITH &&)
);