Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
f0fc61e0
Commit
f0fc61e0
authored
Oct 22, 2006
by
Nigel McNie
Committed by
Nigel McNie
Oct 22, 2006
Browse files
Fix for columns being not null and having integer defaults.
parent
4239c3ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/xmldb/classes/generators/XMLDBGenerator.class.php
View file @
f0fc61e0
...
...
@@ -439,7 +439,7 @@ class XMLDBgenerator {
$default
=
null
;
if
(
$xmldb_field
->
getDefault
()
!=
NULL
)
{
if
(
$xmldb_field
->
getDefault
()
!=
=
NULL
)
{
if
(
$xmldb_field
->
getType
()
==
XMLDB_TYPE_CHAR
||
$xmldb_field
->
getType
()
==
XMLDB_TYPE_TEXT
)
{
$default
=
"'"
.
addslashes
(
$xmldb_field
->
getDefault
())
.
"'"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment