--- parser3/src/www/htdocs/Attic/index.html 2001/05/19 19:10:20 1.190
+++ parser3/src/www/htdocs/Attic/index.html 2001/05/21 16:55:52 1.194
@@ -28,7 +28,7 @@ $t[^table:set{key value
$h[^t.hash[key]]
^sql_test[$SQL.connect-string]
-^sql_test[mysql://test:test@localhost/test/cp1251_koi8]
+#^sql_test[mysql://test:test@localhost/test/cp1251_koi8]
$abc{}
@@ -144,6 +144,7 @@ ${comment}.
^connect[$connect-string]{
$shit[^taint[our's]]
# $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]
+ ^sql{update paf set age=age+1}
$paf[^table:sql{select * from paf order by id desc}(5)]
$paf{
^if(^empty[]){query result is empty}{
@@ -152,6 +153,11 @@ ${comment}.
^menu{| $id | $name | $age |
}
}}
+ ^^string:sql{select age from paf where id=1}=^string:sql{select age from paf where id=1}
+ ^^int:sql{select age from paf where id=1}=^int:sql{select age from paf where id=1}
+
+ $paf[^hash:sql{select id,age from paf}]
+ ^$paf.2.age=$paf.2.age
}
#}
#}