comparison freeDiameter/tests/testappacct.c @ 355:1ae3f2c28737

Yet another fix
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 30 Jun 2010 11:24:15 +0900
parents 9d786d459dc8
children 26aafbbc1640
comparison
equal deleted inserted replaced
354:818a787ae5f8 355:1ae3f2c28737
106 /* Initialize the extension configuration for the test */ 106 /* Initialize the extension configuration for the test */
107 { 107 {
108 CHECK( 0, acct_conf_init() ); 108 CHECK( 0, acct_conf_init() );
109 acct_config->conninfo = strdup(TEST_CONNINFO); 109 acct_config->conninfo = strdup(TEST_CONNINFO);
110 acct_config->tablename = strdup(TABLE); 110 acct_config->tablename = strdup(TABLE);
111 acct_config->tsfield = strdup("ts"); 111 acct_config->tsfield = strdup("recorded_on");
112 CHECK( 0, add_avp_in_conf(strdup("Session-Id"), 0) ); 112 CHECK( 0, add_avp_in_conf(strdup("Session-Id"), 0) );
113 CHECK( 0, add_avp_in_conf(strdup("Accounting-Record-Type"), 0) ); 113 CHECK( 0, add_avp_in_conf(strdup("Accounting-Record-Type"), 0) );
114 CHECK( 0, add_avp_in_conf(strdup("Accounting-Record-Number"), 0) ); 114 CHECK( 0, add_avp_in_conf(strdup("Accounting-Record-Number"), 0) );
115 CHECK( 0, add_avp_in_conf(strdup("Route-Record"), 4) ); 115 CHECK( 0, add_avp_in_conf(strdup("Route-Record"), 4) );
116 116
126 res = PQexec(conn, "DROP TABLE " TABLE ";"); 126 res = PQexec(conn, "DROP TABLE " TABLE ";");
127 CHECK( PGRES_COMMAND_OK, PQresultStatus(res) ); 127 CHECK( PGRES_COMMAND_OK, PQresultStatus(res) );
128 PQclear(res); 128 PQclear(res);
129 129
130 res = PQexec(conn, "CREATE TABLE " TABLE " ( " 130 res = PQexec(conn, "CREATE TABLE " TABLE " ( "
131 " ts timestamp with time zone NOT NULL, " 131 " recorded_on timestamp with time zone NOT NULL, "
132 " \"Accounting-Record-Type\" integer, " 132 " \"Accounting-Record-Type\" integer, "
133 " \"Session-Id\" bytea, " 133 " \"Session-Id\" bytea, "
134 " \"Accounting-Record-Number\" integer, " 134 " \"Accounting-Record-Number\" integer, "
135 " \"Route-Record1\" bytea, " 135 " \"Route-Record1\" bytea, "
136 " \"Route-Record2\" bytea, " 136 " \"Route-Record2\" bytea, "
"Welcome to our mercurial repository"