Closed steveharclerode closed 11 years ago
You're welcome! Sorry it's not working for you. What version on node are you using? On Mar 27, 2013 8:18 PM, "steveharclerode" notifications@github.com wrote:
Thanks for creating bluesky.
I've been running through your presentations about bluesky on Pluralsight, and I noticed that integer and data fields don't seem to maintain their type information in my environment. Here's the code from your presentation:
var storage = require("bluesky").storage();
// process.env.EMULATED = true; var data = { who: 'me', howMany: 234, when: new Date() }; var theTable = storage.table('test');
//storage.createTable('test', function (err, t) { // console.dir(t); //});
theTable.insert('test', data, function (err) { theTable.rows().on('data', function (row) { console.dir(row); }); });
When you run it in the presentation, you get the correct results. When I run it, I see the [edited] results below: Timestamp: Thu, 28 Mar 2013 00:07:18 GMT, who: 'me', howMany: '[object Object]', when: '[object Object]' }
I'm running this in a Windows 7 environment, using the local storage emulator.
— Reply to this email directly or view it on GitHubhttps://github.com/pofallon/node-bluesky/issues/22 .
v0.6.20.
I just tried to store an nteger without bluesky (using JSON hints), and I'm getting the same results. Maybe something has happened to the azure package (version 0.7.0).
Yep, you're probably right. I'll take a look this weekend.
Thanks!
On Thu, Mar 28, 2013 at 12:26 PM, steveharclerode notifications@github.comwrote:
v0.6.20.
I just tried to store an nteger without bluesky (using JSON hints), and I'm getting the same results. Maybe something has happened to the azure package (version 0.7.0).
— Reply to this email directly or view it on GitHubhttps://github.com/pofallon/node-bluesky/issues/22#issuecomment-15598342 .
A fix for this has been posted to the master branch. (azure now supports data types, so bluesky no longer needs to provide explicit support for them -- it can defer to azure). I'll publish to npm this evening.
Fixed and published to npm as v0.6.7 -- thanks for letting me know!
Your support is better than a lot of the stuff I actually pay for. :+1:
Thanks for creating bluesky.
I've been running through your presentations about bluesky on Pluralsight, and I noticed that integer and data fields don't seem to maintain their type information in my environment. Here's the code from your presentation:
var storage = require("bluesky").storage();
// process.env.EMULATED = true; var data = { who: 'me', howMany: 234, when: new Date() }; var theTable = storage.table('test');
//storage.createTable('test', function (err, t) { // console.dir(t); //});
theTable.insert('test', data, function (err) { theTable.rows().on('data', function (row) { console.dir(row); }); });
When you run it in the presentation, you get the correct results. When I run it, I see the [edited] results below: Timestamp: Thu, 28 Mar 2013 00:07:18 GMT, who: 'me', howMany: '[object Object]', when: '[object Object]' }
I'm running this in a Windows 7 environment, using the local storage emulator.