~linuxjedi/libdrizzle/5.1-fix-mingw

« back to all changes in this revision

Viewing changes to tests/unit/column.c

  • Committer: Continuous Integration
  • Date: 2013-01-12 13:42:41 UTC
  • mfrom: (87.1.4 5.1-uds)
  • Revision ID: ci@drizzle.org-20130112134241-olg74qnwo9s7rqqd
Merge lp:~linuxjedi/libdrizzle/5.1-uds Build: jenkins-Libdrizzle-42

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  Drizzle Client & Protocol Library
4
4
 *
5
 
 * Copyright (C) 2012 Andrew Hutchings (andrew@linuxjedi.co.uk)
 
5
 * Copyright (C) 2012 Drizzle Developer Group
6
6
 * All rights reserved.
7
7
 *
8
8
 * Redistribution and use in source and binary forms, with or without
59
59
  drizzle_return_t ret= drizzle_connect(con);
60
60
  if (ret == DRIZZLE_RETURN_COULD_NOT_CONNECT)
61
61
  {
62
 
    const char *error= drizzle_error(con);
 
62
    char error[DRIZZLE_MAX_ERROR_SIZE];
 
63
    strncpy(error, drizzle_error(con), DRIZZLE_MAX_ERROR_SIZE);
 
64
 
63
65
    drizzle_quit(con);
64
66
    SKIP_IF_(ret == DRIZZLE_RETURN_COULD_NOT_CONNECT, "%s(%s)", error, drizzle_strerror(ret));
65
67
  }