About Store Forum Documentation Contact



Post Reply 
getting bytes from sqLite
Author Message
yvanvds Offline
Member

Post: #1
getting bytes from sqLite
Hi,

it's not a big issue, but I don't think this behaviour is intended:

Suppose you have a table with a column which accepts a byte:

PHP Code:
columns.New().set("value"SDT_BYTE

I would suppose this would be the way to retrieve it:

PHP Code:
byte value;
sql.getCol(3value); 

But this triggers an error: Memp.setNum does not support PTR mode.

A column can contain a byte, but it cannot be loaded as one. That's not very logical, right?

It doesn't matter that much, but once in a while I forget why I get this error and spend half an hour examining my table and query smile

Regards,

yvan
02-09-2015 10:52 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: getting bytes from sqLite
Thank you for the feedback smile

Haven't tested this but that should do the trick:
https://github.com/Esenthel/EsenthelEngi...256ad22c93
02-10-2015 12:18 AM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #3
RE: getting bytes from sqLite
Yeah, I thought it might be as simple as that smile Thanks!
02-10-2015 12:06 PM
Find all posts by this user Quote this message in a reply
Post Reply