aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/doc/src/databases.xml
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-04-01 09:29:21 +0000
committerErlang/OTP <[email protected]>2010-04-01 11:31:32 +0200
commit87bd1e8987ba216cb66f680094939cae333f2077 (patch)
treee57c313b198621a5f6c415f2208537816a79ac03 /lib/odbc/doc/src/databases.xml
parent71238dc853d1e56b34b883b233d99d4480f6bffa (diff)
downloadotp-87bd1e8987ba216cb66f680094939cae333f2077.tar.gz
otp-87bd1e8987ba216cb66f680094939cae333f2077.tar.bz2
otp-87bd1e8987ba216cb66f680094939cae333f2077.zip
OTP-8511 Timestamps in ODBC
Now supports SQL_TYPE_TIMESTAMP on the format {{YY, MM, DD}, {HH, MM, SS}}. Thanks to Juhani Ränkimies.
Diffstat (limited to 'lib/odbc/doc/src/databases.xml')
-rw-r--r--lib/odbc/doc/src/databases.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/odbc/doc/src/databases.xml b/lib/odbc/doc/src/databases.xml
index 2c1b932084..9776736909 100644
--- a/lib/odbc/doc/src/databases.xml
+++ b/lib/odbc/doc/src/databases.xml
@@ -99,7 +99,7 @@
<p>Note that when the value of the data to input is a string, it
has to be quoted with <c>'</c>. Example: </p>
<code type="none">
-\011odbc:sql_query(Ref, "INSERT INTO EMPLOYEE VALUES(1, 'Jane', 'Doe', 'F')").
+odbc:sql_query(Ref, "INSERT INTO EMPLOYEE VALUES(1, 'Jane', 'Doe', 'F')").
</code>
</note>
<p>You may also input data using <seealso marker="odbc#param_query">param_query/[3,4]</seealso> and then
@@ -198,7 +198,7 @@ when p >= 16 </cell>
</row>
<row>
<cell align="left" valign="middle">SQL_TYPE_TIMESTAMP </cell>
- <cell align="left" valign="middle">String </cell>
+ <cell align="left" valign="middle"> {{YY, MM, DD}, {HH, MM, SS}} </cell>
</row>
<row>
<cell align="left" valign="middle">SQL_LONGVARCHAR </cell>
@@ -262,8 +262,8 @@ when p >= 16 </cell>
customers of that department. </p>
<code type="none">
CREATE PROCEDURE DepartmentInfo (@DepartmentID INT) AS
-\011SELECT * FROM Employee WHERE department = @DepartmentID
-\011SELECT * FROM Customers WHERE department = @DepartmentID
+ SELECT * FROM Employee WHERE department = @DepartmentID
+ SELECT * FROM Customers WHERE department = @DepartmentID
</code>
</section>