Header And Logo

PostgreSQL
| The world's most advanced open source database.

sqlda-native.h

Go to the documentation of this file.
00001 /*
00002  * src/interfaces/ecpg/include/sqlda-native.h
00003  */
00004 
00005 #ifndef ECPG_SQLDA_NATIVE_H
00006 #define ECPG_SQLDA_NATIVE_H
00007 
00008 /*
00009  * Maximum length for identifiers (e.g. table names, column names,
00010  * function names).  Names actually are limited to one less byte than this,
00011  * because the length must include a trailing zero byte.
00012  *
00013  * This should be at least as much as NAMEDATALEN of the database the
00014  * applications run against.
00015  */
00016 #define NAMEDATALEN 64
00017 
00018 struct sqlname
00019 {
00020     short       length;
00021     char        data[NAMEDATALEN];
00022 };
00023 
00024 struct sqlvar_struct
00025 {
00026     short       sqltype;
00027     short       sqllen;
00028     char       *sqldata;
00029     short      *sqlind;
00030     struct sqlname sqlname;
00031 };
00032 
00033 struct sqlda_struct
00034 {
00035     char        sqldaid[8];
00036     long        sqldabc;
00037     short       sqln;
00038     short       sqld;
00039     struct sqlda_struct *desc_next;
00040     struct sqlvar_struct sqlvar[1];
00041 };
00042 
00043 #endif   /* ECPG_SQLDA_NATIVE_H */