~linuxjedi/libdrizzle/5.1-fix-wine

« back to all changes in this revision

Viewing changes to tests/unit/insert_id.c

  • Committer: Continuous Integration
  • Date: 2012-12-31 01:08:39 UTC
  • mfrom: (73.1.3 5.1-trunk)
  • Revision ID: ci@drizzle.org-20121231010839-8hg9bazx84mj03fw
Merge lp:~brianaker/libdrizzle/private-headers-connection-test Build: jenkins-Libdrizzle-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  (void) argc;
49
49
  (void) argv;
50
50
 
51
 
  drizzle_st *con= drizzle_create_tcp("localhost", DRIZZLE_DEFAULT_TCP_PORT, "root", NULL, NULL, 0);
 
51
  drizzle_st *con= drizzle_create_tcp(getenv("MYSQL_SERVER"),
 
52
                                      getenv("MYSQL_PORT") ? atoi("MYSQL_PORT") : DRIZZLE_DEFAULT_TCP_PORT,
 
53
                                      getenv("MYSQL_USER"),
 
54
                                      getenv("MYSQL_PASSWORD"),
 
55
                                      getenv("MYSQL_SCHEMA"), 0);
52
56
  ASSERT_NOT_NULL_(con, "Drizzle connection object creation error");
53
57
 
54
58
  drizzle_return_t ret= drizzle_connect(con);