Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2258fd67
Commit
2258fd67
authored
Aug 27, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes of select count(*)
parent
872dff5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ndb/src/ndbapi/NdbDictionaryImpl.cpp
ndb/src/ndbapi/NdbDictionaryImpl.cpp
+5
-0
ndb/tools/select_count.cpp
ndb/tools/select_count.cpp
+1
-1
No files found.
ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
2258fd67
...
...
@@ -212,12 +212,15 @@ NdbColumnImpl::create_psuedo(const char * name){
}
else
if
(
!
strcmp
(
name
,
"NDB$ROW_COUNT"
)){
col
->
setType
(
NdbDictionary
::
Column
::
Bigunsigned
);
col
->
m_impl
.
m_attrId
=
AttributeHeader
::
ROW_COUNT
;
col
->
m_impl
.
m_attrSize
=
8
;
}
else
if
(
!
strcmp
(
name
,
"NDB$COMMIT_COUNT"
)){
col
->
setType
(
NdbDictionary
::
Column
::
Bigunsigned
);
col
->
m_impl
.
m_attrId
=
AttributeHeader
::
COMMIT_COUNT
;
col
->
m_impl
.
m_attrSize
=
8
;
}
else
{
abort
();
}
return
col
;
}
/**
...
...
@@ -642,7 +645,9 @@ NdbDictionaryImpl::setTransporter(class Ndb* ndb,
NdbColumnImpl
::
create_psuedo
(
"NDB$COMMIT_COUNT"
);
}
m_globalHash
->
unlock
();
return
true
;
}
return
false
;
}
NdbTableImpl
*
...
...
ndb/tools/select_count.cpp
View file @
2258fd67
...
...
@@ -144,7 +144,7 @@ select_count(Ndb* pNdb, const NdbDictionary::Table* pTab,
return
NDBT_FAILED
;
}
Uint
32
tmp
;
Uint
64
tmp
;
pOp
->
getValue
(
NdbDictionary
::
Column
::
ROW_COUNT
,
(
char
*
)
&
tmp
);
check
=
pTrans
->
execute
(
NoCommit
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment