PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
connect-test4.c File Reference
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for connect-test4.c:

Go to the source code of this file.

Macros

#define ECPGdebug(X, Y)   ECPGdebug((X)+100,(Y))
 

Functions

int main (void)
 

Macro Definition Documentation

#define ECPGdebug (   X,
 
)    ECPGdebug((X)+100,(Y))

Definition at line 7 of file connect-test4.c.

Referenced by main().

Function Documentation

int main ( void  )

Definition at line 27 of file connect-test4.c.

References ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGsetconn(), and NULL.

28 {
29  ECPGdebug(1, stderr);
30 
31  { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "main", 0); }
32 #line 13 "test4.pgc"
33 
34 
35  { ECPGsetconn(__LINE__, "main");}
36 #line 15 "test4.pgc"
37 
38 
39  { ECPGdisconnect(__LINE__, "DEFAULT");}
40 #line 17 "test4.pgc"
41 
42 
43  return (0);
44 }
bool ECPGdisconnect(int lineno, const char *connection_name)
Definition: connect.c:669
#define ECPGdebug(X, Y)
Definition: connect-test4.c:7
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
Definition: connect.c:271
bool ECPGsetconn(int lineno, const char *connection_name)
Definition: connect.c:202
#define NULL
Definition: c.h:226