Skip to content

Commit 1bafa7e

Browse files
author
Ole John Aske
committed
Merge 7.3 -> 7.4
2 parents 050c2a1 + 3b2074c commit 1bafa7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/ndb/test/ndbapi/testBitfield.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -159,7 +159,7 @@ create_random_table(Ndb* pNdb)
159159
memset(defbuf, 0, (length + 7)/8);
160160
for (Uint32 j = 0; j < len/8; j++)
161161
defbuf[j] = 0x63;
162-
col.setDefaultValue(defbuf, (len + 7)/8);
162+
col.setDefaultValue(defbuf, 4*((len + 31)/32));
163163
col.setLength(len); length -= len;
164164
int nullable = (rand() >> 16) & 1;
165165
col.setNullable(nullable); length -= nullable;

0 commit comments

Comments
 (0)