|
-
PGTYPES_DATE_BAD_DATE
-
PGTYPES_DATE_ERR_EARGS
-
PGTYPES_DATE_ERR_ENOSHORTDATE
-
PGTYPES_INTVL_BAD_INTERVAL
-
PGTYPES_DATE_ERR_ENOTDMY
-
PGTYPES_DATE_BAD_DAY
-
PGTYPES_DATE_BAD_MONTH
-
PGTYPES_TS_BAD_TIMESTAMP
of ecpg. pgtypeslib maps SQL data types to data types within the C host
program and most of the additional functions of the Informix compatibility
mode allow you to operate on those C host program types. Note however that
- the extend of the compatibility is limited. It does not try to copy Informix
- behaviour but it allows you to do more or less the same operations and gives
+ the extent of the compatibility is limited. It does not try to copy Informix
+ behaviour; it allows you to do more or less the same operations and gives
you functions that have the same name and the same basic behavior but it is
no drop-in replacement if you are using Informix at the moment. Moreover,
some of the data types are different. For example,
-
PostgreSQL's datetime and interval types do not
+
PostgreSQL's</productname> datetime and interval types do not
know about ranges like for example YEAR TO MINUTE> so you won't
find support in ecpg for that either.
synonym for ecpg's DISCONNECT CURRENT>.
$CLOSE DATABASE; /* close the current connection */
- EXEC SQL ClOSE DATABASE;
+ EXEC SQL CLOSE DATABASE;
+
+
+
Here is an example of a call to this function:
+
Example: