Skip to content

Commit

Permalink
fix(202): RemoteQuery should not SELECT *
Browse files Browse the repository at this point in the history
Fixes #202.

Because SELECT * is ambiguous if the query is a join
  • Loading branch information
joshua-spacetime committed Jan 6, 2025
1 parent 2ed7b8f commit 9dc0cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ bool IRemoteTableHandle.DeleteEntry(byte[] rowBytes)
protected IEnumerable<Row> Query(Func<Row, bool> filter) => Iter().Where(filter);

public Task<Row[]> RemoteQuery(string query) =>
conn!.RemoteQuery<Row>($"SELECT * FROM {name!} {query}");
conn!.RemoteQuery<Row>($"SELECT {name!}.* FROM {name!} {query}");

void IRemoteTableHandle.InvokeInsert(IEventContext context, IDatabaseRow row) =>
OnInsert?.Invoke((EventContext)context, (Row)row);
Expand Down

0 comments on commit 9dc0cb5

Please sign in to comment.