Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

corrected use of wrong select fn in rdbms

  • Loading branch information...
commit 3ddf0b59e1d850d8829cec2b72241c13ddf6aa40 1 parent 9706cb1
uwiger authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/rdbms/src/rdbms_index.erl
View
9 lib/rdbms/src/rdbms_index.erl
@@ -81,13 +81,14 @@ read(Tid, Ts, Tab, Key, {_Pos,_Tag}=Index, LockKind, VMod)
case Ix#index.type of
ordered ->
Pat = select_pattern(Ix, Key),
- rdbms:select(Tid, Ts, IxTab, Pat, LockKind, VMod);
+ rdbms:do_select(Tid, Ts, IxTab, Pat, LockKind, VMod);
weighted ->
%% we support weighted indexes here, but we throw away
%% the weights
Pat = select_pattern(Ix, Key),
[O || {O,_} <-
- rdbms:select(Tid, Ts, IxTab, Pat, LockKind, VMod)];
+ rdbms:do_select(
+ Tid, Ts, IxTab, Pat, LockKind, VMod)];
T when T==bag; T==set ->
IxObjs = rdbms:read(Tid, Ts, IxTab, Key, LockKind, VMod),
[Oid || #ix{oid = Oid} <- IxObjs]
@@ -112,10 +113,10 @@ w_read(Tid, Ts, Tab, Key, {_Pos,_Tag}=Index, LockKind, VMod)
%% introduce dummy weights
Pat = select_pattern(Ix, Key),
[{O,1} ||
- O <- rdbms:select(Tid, Ts, IxTab, Pat, LockKind, VMod)];
+ O <- rdbms:do_select(Tid, Ts, IxTab, Pat, LockKind, VMod)];
weighted ->
Pat = select_pattern(Ix, Key),
- rdbms:select(Tid, Ts, IxTab, Pat, LockKind, VMod);
+ rdbms:do_select(Tid, Ts, IxTab, Pat, LockKind, VMod);
bag ->
%% introduce dummy weights
IxObjs = rdbms:read(Tid, Ts, IxTab, Key, LockKind, VMod),
Please sign in to comment.
Something went wrong with that request. Please try again.