Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOliver Gasser <oliver.gasser@gmail.com>2013-11-12 14:27:57 +0400
committerOliver Gasser <oliver.gasser@gmail.com>2013-11-12 14:27:57 +0400
commit95b3eb2c756983108506d19be897b8f889209eaa (patch)
treef0a89dc87cd8346903a6bdf13d6311765a9f5f6e /tests
parentb278356eb92e50cd2d0016e78319d50d943bca41 (diff)
Add DB tests for default numeric
Add a table with a numeric column and an empty default directive.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/db_structure.xml22
-rw-r--r--tests/data/db_structure2.xml22
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/db_structure.xml b/tests/data/db_structure.xml
index 2e83bbb78c7..5f2edbbc516 100644
--- a/tests/data/db_structure.xml
+++ b/tests/data/db_structure.xml
@@ -199,4 +199,26 @@
</declaration>
</table>
+ <table>
+ <name>*dbprefix*decimal</name>
+ <declaration>
+ <field>
+ <name>id</name>
+ <autoincrement>1</autoincrement>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>decimaltest</name>
+ <type>decimal</type>
+ <default/>
+ <notnull>true</notnull>
+ <length>15</length>
+ </field>
+ </declaration>
+ </table>
+
</database>
diff --git a/tests/data/db_structure2.xml b/tests/data/db_structure2.xml
index bbfb24985cb..6cd071451df 100644
--- a/tests/data/db_structure2.xml
+++ b/tests/data/db_structure2.xml
@@ -96,4 +96,26 @@
</declaration>
</table>
+ <table>
+ <name>*dbprefix*decimal</name>
+ <declaration>
+ <field>
+ <name>id</name>
+ <autoincrement>1</autoincrement>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>decimaltest</name>
+ <type>decimal</type>
+ <default/>
+ <notnull>true</notnull>
+ <length>15</length>
+ </field>
+ </declaration>
+ </table>
+
</database>