~ubuntu-branches/ubuntu/precise/libdbi-drivers/precise

« back to all changes in this revision

Viewing changes to drivers/sqlite/dbd_sqlite/x197.html

  • Committer: Stefano Rivera
  • Date: 2010-08-07 14:06:29 UTC
  • mfrom: (5.1.1 libdbi-drivers)
  • Revision ID: stefanor@ubuntu.com-20100807140629-dshfwn5j6v34pqrd
Tags: 0.8.3-1-0ubuntu1
New upstream release. -- Fixes ABORT problems with sqlite3+rrdtool

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
1
2
<HTML
2
3
><HEAD
3
4
><TITLE
4
5
>sqlite driver misfeatures</TITLE
5
6
><META
6
7
NAME="GENERATOR"
7
 
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8
 
"><LINK
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9
9
REL="HOME"
10
10
TITLE="sqlite driver manual"
11
11
HREF="index.html"><LINK
66
66
><H1
67
67
CLASS="SECT1"
68
68
><A
69
 
NAME="AEN197">4.2. sqlite driver misfeatures</H1
 
69
NAME="AEN197"
 
70
>4.2. sqlite driver misfeatures</A
 
71
></H1
70
72
><P
71
73
>And now we have to discuss how successful the sqlite driver is in squeezing the SQLite idea of a database engine into the libdbi framework which was shaped after MySQL and PostgreSQL. Keep in mind that the limitations mentioned here are not intrinsic, that is a sufficient amount of coding might fix these problems eventually.</P
72
74
><P
78
80
></LI
79
81
><LI
80
82
><P
81
 
>The typeless nature of SQLite has some nasty consequences. The sqlite driver takes great care to reconstruct the type of a field that you request in a query, but this isn't always successful. Some of the functions that SQLite supports work both on numeric and text data. The sqlite driver currently cannot deduce the field type correctly as it would have to check all arguments of each function. Instead the sqlite driver makes a few assumptions that may be right or wrong in a given case. The affected functions are <TT
82
 
CLASS="FUNCTION"
83
 
>coalesce(X,Y,...)</TT
84
 
>, <TT
85
 
CLASS="FUNCTION"
86
 
>max(X)</TT
87
 
>, <TT
88
 
CLASS="FUNCTION"
89
 
>min(X)</TT
90
 
>, and <TT
91
 
CLASS="FUNCTION"
92
 
>count(X)</TT
 
83
>The typeless nature of SQLite has some nasty consequences. The sqlite driver takes great care to reconstruct the type of a field that you request in a query, but this isn't always successful. Some of the functions that SQLite supports work both on numeric and text data. The sqlite driver currently cannot deduce the field type correctly as it would have to check all arguments of each function. Instead the sqlite driver makes a few assumptions that may be right or wrong in a given case. The affected functions are <CODE
 
84
CLASS="FUNCTION"
 
85
>coalesce(X,Y,...)</CODE
 
86
>, <CODE
 
87
CLASS="FUNCTION"
 
88
>max(X)</CODE
 
89
>, <CODE
 
90
CLASS="FUNCTION"
 
91
>min(X)</CODE
 
92
>, and <CODE
 
93
CLASS="FUNCTION"
 
94
>count(X)</CODE
93
95
>.</P
94
96
></LI
95
97
><LI
111
113
></LI
112
114
><LI
113
115
><P
114
 
>Listing tables with the <TT
 
116
>Listing tables with the <CODE
115
117
CLASS="FUNCTION"
116
 
>dbi_conn_get_table_list()</TT
 
118
>dbi_conn_get_table_list()</CODE
117
119
> libdbi function currently returns only permanent tables. Temporary tables are ignored.</P
118
120
></LI
119
121
><LI