Coder Social home page Coder Social logo

express-admin's People

Contributors

evcordeiro avatar philippwiddra avatar simov avatar

Watchers

 avatar

express-admin's Issues

quote column names on insert

stack trace of POST model/add:

[object Object]
at Object.exports.replace (/home/ecord/myb-admin/express-admin/lib/utils/query.js:93:15)
at updateRecord (/home/ecord/myb-admin/express-admin/lib/core/database.js:55:25)
at loopRecords (/home/ecord/myb-admin/express-admin/lib/core/database.js:37:17)
at loopTables (/home/ecord/myb-admin/express-admin/lib/core/database.js:41:14)
at loopTypes (/home/ecord/myb-admin/express-admin/lib/core/database.js:42:10)
at Object.exports.update (/home/ecord/myb-admin/express-admin/lib/core/database.js:43:6)
at /home/ecord/myb-admin/express-admin/routes/editview.js:56:18
at loop (/home/ecord/myb-admin/express-admin/lib/core/editview.js:195:39)
at /home/ecord/myb-admin/express-admin/lib/core/editview.js:210:13
at loop (/home/ecord/myb-admin/express-admin/lib/core/editview.js:219:42)
POST /image/add 302 10ms - 68b

blob type not supported

this is a mysql-validator thing. see /lib/utils/template.js:79. mysql-validator/validate.js:check(value, type) assumes type exists if not will trigger exception.

multiple oneToMany references to the same table fails

table alias for join are not unique, need some sort of composite or increment. how do the view deal with this? composite could be be easier to disambiguate probably. Workaround is to not include in listview

query: 'SELECT post.post_id AS __pk,post.post_date,post.created_dat e,post.edited_date,post.event_date,CONCAT_WS(' ',CAST(user.usernam e AS CHAR)) AS author,post.post_text,post.title,CONCAT_WS(' ',CAST( image.folder AS CHAR),CAST(image.name AS CHAR),CAST(image.date AS CH AR)) AS header_image,CONCAT_WS(' ',CAST(image.folder AS CHAR),CAST(imag e.name AS CHAR),CAST(image.date AS CHAR)) AS thumbnail_image,CONCAT_WS( ' ',CAST(image.folder AS CHAR),CAST(image.name AS CHAR),CAST(image.date AS CHAR)) AS footer_image FROM post JOIN user ON post.author = user.user_id JOIN image ON post.header_image = image.image_id JO IN image ON post.thumbnail_image = image.image_id JOIN image ON po st.footer_image = image.image_id ORDER BY post.post_id asc LIMIT 0,25 ;'

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.