Field Database type Double does not install #847
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#847
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
add a field with the Database type double
in the tab Database, it is mandatory to enter a field size.
Expected result
install / upgrade the component
Actual result
It is not possible to install the component.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') NOT NULL DEFAULT 0 AFTER
name
' at line 1SQL =
ALTER TABLE
#__demo_look
ADD COLUMNnumber
DOUBLE(100) NOT NULL DEFAULT 0 AFTERname
;System information (as much as possible)
Additional comments
by removing (100) after the DOUBLE, the component installs.
Seems like a limitation in JCB, we are only making provision for one number, and it seems like there is two needed, or none. Honestly I have never used it, just added it and well your the first to give legitimate feedback, so thanks.
Can you check what happens it you have two numbers like
Then seeing it is an ALTER TABLE statement, you know you can update this in JCB... I mean the ALTER statement. But sure we should push the DOUBLE setting a bit further to work as expected... so let me know.
An apologies for the slow replay... as always to much on my plate 👍
this time I'm sorry that I replay only know, but thank you for replaying. I tried with double (100,4) and it works perfectly. I guess I could have taken less bytes, like double (16,4) and it would have work as well in my example.
Okay I take it this is resolved...