~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_tempfile.cc

  • Committer: Stewart Smith
  • Date: 2010-04-07 02:08:20 UTC
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: stewart@flamingspork.com-20100407020820-4elzp2uuorw5vv89
add basic_create_select test that currently causes a crash due to https://bugs.launchpad.net/drizzle/+bug/556978

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
#include <config.h>
17
 
 
18
 
#include <drizzled/internal/my_sys.h>
19
 
#include <drizzled/internal/m_string.h>
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#include "config.h"
 
17
 
 
18
#include "drizzled/internal/my_sys.h"
 
19
#include "drizzled/internal/m_string.h"
20
20
#include "my_static.h"
21
 
#include <drizzled/error.h>
 
21
#include "drizzled/error.h"
22
22
#include <stdio.h>
23
23
#include <errno.h>
24
24
#include <string>
73
73
    dir= P_tmpdir;
74
74
  if (strlen(dir)+prefix_str.length() > FN_REFLEN-2)
75
75
  {
76
 
    errno= ENAMETOOLONG;
 
76
    errno=errno= ENAMETOOLONG;
77
77
    return(file);
78
78
  }
79
79
  strcpy(convert_dirname(to,dir,NULL),prefix_str.c_str());