Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to read beyond buffer length #18

Open
malpower opened this issue Jul 14, 2017 · 3 comments
Open

Trying to read beyond buffer length #18

malpower opened this issue Jul 14, 2017 · 3 comments

Comments

@malpower
Copy link

I just tried to run an SQL below with @adhoc procedure, it throws an error said "Trying to read beyond buffer length".

SQL:
select A.*,
B.name as name,
B.avatar as avatar
from PLAYERS as A left join TEAM_PLAYERS as B on A.playerID=B.id
where uID='${game.id}' and A.teamID='${game.homeTeam.id}';

Any advise?

@sp-suresh
Copy link
Contributor

What count of records satisfying the query criteria?

@malpower
Copy link
Author

malpower commented Sep 1, 2017

less than 40 records stored in DB.

@mattyouill
Copy link
Contributor

Hi, having a quick look at this myself. Are you able to supply your schema? Perhaps some data you're running against?

mattyouill added a commit to burnian-engineering/voltdb-client-nodejs that referenced this issue Sep 19, 2017
…length" error. Can only really guess what is triggering it given the sketchy details but the test case tries to replicate what is described in the VoltDB#18 issue.

Also contains some experimental promise based wrappers around the call back style fns in VoltClient... plus an eslint config.
nshi pushed a commit that referenced this issue Sep 21, 2017
…length" error. Can only really guess what is triggering it given the sketchy details but the test case tries to replicate what is described in the #18 issue. (#28)

Also contains some experimental promise based wrappers around the call back style fns in VoltClient... plus an eslint config.
mattyouill added a commit to burnian-engineering/voltdb-client-nodejs that referenced this issue Nov 14, 2017
…length" error. Can only really guess what is triggering it given the sketchy details but the test case tries to replicate what is described in the VoltDB#18 issue. (VoltDB#28)

Also contains some experimental promise based wrappers around the call back style fns in VoltClient... plus an eslint config.
nshi pushed a commit that referenced this issue Dec 15, 2017
* Change the test cases to query Docker for the port Volt is exposed on.
Change the ddl to tear down the test Volt schema before setting it up.
Change the run script to query Docker for the port Volt is exposed on.

* A few subtle changes in here but I think I've captured what you were after.

As far as getting a Volt instance setup and ready for testing against:

- It now defaults to starting a local Volt instance if it can't find a running Docker instance
- If it does find a running docker instance it will use that

On the testing side:

- You can configure the preferred way to run the tests, but it defaults to using a local instance
- You can override this by passing a cli option of -i docker to use docker.

(Having the tests automagically search for a usable Volt instance gives me the heebie jeebies a bit... I know I switch between projects a lot and am a bit apprehensive about the tests running against a wrong instance). Hopefully it now supporting both ways (via switches) is a usable compromise?

Some extra things...

Have begun to add some linting
Added nvm - minimum node version already quite out of date
Some naming hygiene
Run tests and lint from npm - still awkward but getting there

* Beginnings of a test to track down the "Trying to read beyond buffer length" error. Can only really guess what is triggering it given the sketchy details but the test case tries to replicate what is described in the #18 issue. (#28)

Also contains some experimental promise based wrappers around the call back style fns in VoltClient... plus an eslint config.

* A few subtle changes in here but I think I've captured what you were after.

As far as getting a Volt instance setup and ready for testing against:

- It now defaults to starting a local Volt instance if it can't find a running Docker instance
- If it does find a running docker instance it will use that

On the testing side:

- You can configure the preferred way to run the tests, but it defaults to using a local instance
- You can override this by passing a cli option of -i docker to use docker.

(Having the tests automagically search for a usable Volt instance gives me the heebie jeebies a bit... I know I switch between projects a lot and am a bit apprehensive about the tests running against a wrong instance). Hopefully it now supporting both ways (via switches) is a usable compromise?

Some extra things...

Have begun to add some linting
Added nvm - minimum node version already quite out of date
Some naming hygiene
Run tests and lint from npm - still awkward but getting there

* Fix: Order of statements in drop ddl
Fix: Missing test context in buffer test
Fix: Test for Volt docker instance in schema setup script

Change: Return default Volt port when no Docker container found running volt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants