We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 050c2a1 + 3b2074c commit 1bafa7eCopy full SHA for 1bafa7e
storage/ndb/test/ndbapi/testBitfield.cpp
@@ -1,5 +1,5 @@
1
/*
2
- Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
@@ -159,7 +159,7 @@ create_random_table(Ndb* pNdb)
159
memset(defbuf, 0, (length + 7)/8);
160
for (Uint32 j = 0; j < len/8; j++)
161
defbuf[j] = 0x63;
162
- col.setDefaultValue(defbuf, (len + 7)/8);
+ col.setDefaultValue(defbuf, 4*((len + 31)/32));
163
col.setLength(len); length -= len;
164
int nullable = (rand() >> 16) & 1;
165
col.setNullable(nullable); length -= nullable;
0 commit comments