Giter Club home page Giter Club logo

Comments (3)

rcdmk avatar rcdmk commented on June 1, 2024

I'm on a Windows 10 (64bit) machine, running MySQL 5.1 with the 5.1 ODBC driver and I could not simulate your errors.

I've created a table with all common data types and used the JSONarray.LoadRecordset(rs) and the JSONobject.LoadFirstRecord(rs) methods with no error.

CREATE TABLE `test` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(50) NOT NULL,
    `age` INT(11) NULL DEFAULT NULL,
    `bdate` DATE NULL DEFAULT NULL,
    `income` DECIMAL(10,2) NULL DEFAULT NULL,
    `weight` FLOAT NULL DEFAULT NULL,
    `height` DOUBLE(3,2) NULL DEFAULT NULL,
    `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `nextMeeting` DATETIME NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
)
ENGINE=InnoDB;
<!--#include file="jsonObject.class.asp" -->
<%
dim json, rs
set json = new JSONobject
set rs = createObject("ADODB.Recordset")

rs.open "select * from test", "driver={MySQL ODBC 5.1 Driver}; datasource=localhost; database=test; uid=root; pwd=notTellingYouHere"

json.LoadFirstRecord(rs)

rs.close
set rs = nothing

json.write

set json = nothing
%>

Can you test this on your machine?

from aspjson.

rcdmk avatar rcdmk commented on June 1, 2024

Hi.
Please, let me know when you find some time to test this.
Thank you.

from aspjson.

rcdmk avatar rcdmk commented on June 1, 2024

I will close this issue for now, since I could not reproduce the problem.
If you still have this error with the updated version, please, feel free to reopen it.

from aspjson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.