|
218 | 218 | {"type":"Keyword","value":"AS"},
|
219 | 219 | {"type":"Text","value":" "},
|
220 | 220 | {"type":"LiteralStringHeredoc","value":"$emp_stamp$"},
|
221 |
| - {"type":"Text","value":"\n"}, |
| 221 | + {"type":"TextWhitespace","value":"\n"}, |
222 | 222 | {"type":"Keyword","value":"BEGIN"},
|
223 |
| - {"type":"Text","value":"\n "}, |
| 223 | + {"type":"TextWhitespace","value":"\n "}, |
224 | 224 | {"type":"CommentSingle","value":"-- Check that empname and salary are given\n"},
|
225 |
| - {"type":"Text","value":" "}, |
| 225 | + {"type":"TextWhitespace","value":" "}, |
226 | 226 | {"type":"Keyword","value":"IF"},
|
227 |
| - {"type":"Text","value":" "}, |
| 227 | + {"type":"TextWhitespace","value":" "}, |
228 | 228 | {"type":"Name","value":"NEW"},
|
229 | 229 | {"type":"LiteralNumberFloat","value":"."},
|
230 | 230 | {"type":"Name","value":"empname"},
|
231 |
| - {"type":"Text","value":" "}, |
| 231 | + {"type":"TextWhitespace","value":" "}, |
232 | 232 | {"type":"Keyword","value":"IS"},
|
233 |
| - {"type":"Text","value":" "}, |
| 233 | + {"type":"TextWhitespace","value":" "}, |
234 | 234 | {"type":"Keyword","value":"NULL"},
|
235 |
| - {"type":"Text","value":" "}, |
| 235 | + {"type":"TextWhitespace","value":" "}, |
236 | 236 | {"type":"Keyword","value":"THEN"},
|
237 |
| - {"type":"Text","value":"\n "}, |
| 237 | + {"type":"TextWhitespace","value":"\n "}, |
238 | 238 | {"type":"Keyword","value":"RAISE"},
|
239 |
| - {"type":"Text","value":" "}, |
| 239 | + {"type":"TextWhitespace","value":" "}, |
240 | 240 | {"type":"Keyword","value":"EXCEPTION"},
|
241 |
| - {"type":"Text","value":" "}, |
| 241 | + {"type":"TextWhitespace","value":" "}, |
242 | 242 | {"type":"LiteralStringSingle","value":"'empname cannot be null'"},
|
243 | 243 | {"type":"Punctuation","value":";"},
|
244 |
| - {"type":"Text","value":"\n "}, |
| 244 | + {"type":"TextWhitespace","value":"\n "}, |
245 | 245 | {"type":"Keyword","value":"END"},
|
246 |
| - {"type":"Text","value":" "}, |
| 246 | + {"type":"TextWhitespace","value":" "}, |
247 | 247 | {"type":"Keyword","value":"IF"},
|
248 | 248 | {"type":"Punctuation","value":";"},
|
249 |
| - {"type":"Text","value":"\n "}, |
| 249 | + {"type":"TextWhitespace","value":"\n "}, |
250 | 250 | {"type":"Keyword","value":"IF"},
|
251 |
| - {"type":"Text","value":" "}, |
| 251 | + {"type":"TextWhitespace","value":" "}, |
252 | 252 | {"type":"Name","value":"NEW"},
|
253 | 253 | {"type":"LiteralNumberFloat","value":"."},
|
254 | 254 | {"type":"Name","value":"salary"},
|
255 |
| - {"type":"Text","value":" "}, |
| 255 | + {"type":"TextWhitespace","value":" "}, |
256 | 256 | {"type":"Keyword","value":"IS"},
|
257 |
| - {"type":"Text","value":" "}, |
| 257 | + {"type":"TextWhitespace","value":" "}, |
258 | 258 | {"type":"Keyword","value":"NULL"},
|
259 |
| - {"type":"Text","value":" "}, |
| 259 | + {"type":"TextWhitespace","value":" "}, |
260 | 260 | {"type":"Keyword","value":"THEN"},
|
261 |
| - {"type":"Text","value":"\n "}, |
| 261 | + {"type":"TextWhitespace","value":"\n "}, |
262 | 262 | {"type":"Keyword","value":"RAISE"},
|
263 |
| - {"type":"Text","value":" "}, |
| 263 | + {"type":"TextWhitespace","value":" "}, |
264 | 264 | {"type":"Keyword","value":"EXCEPTION"},
|
265 |
| - {"type":"Text","value":" "}, |
| 265 | + {"type":"TextWhitespace","value":" "}, |
266 | 266 | {"type":"LiteralStringSingle","value":"'% cannot have null salary'"},
|
267 | 267 | {"type":"Punctuation","value":","},
|
268 |
| - {"type":"Text","value":" "}, |
| 268 | + {"type":"TextWhitespace","value":" "}, |
269 | 269 | {"type":"Name","value":"NEW"},
|
270 | 270 | {"type":"LiteralNumberFloat","value":"."},
|
271 | 271 | {"type":"Name","value":"empname"},
|
272 | 272 | {"type":"Punctuation","value":";"},
|
273 |
| - {"type":"Text","value":"\n "}, |
| 273 | + {"type":"TextWhitespace","value":"\n "}, |
274 | 274 | {"type":"Keyword","value":"END"},
|
275 |
| - {"type":"Text","value":" "}, |
| 275 | + {"type":"TextWhitespace","value":" "}, |
276 | 276 | {"type":"Keyword","value":"IF"},
|
277 | 277 | {"type":"Punctuation","value":";"},
|
278 |
| - {"type":"Text","value":"\n\n "}, |
| 278 | + {"type":"TextWhitespace","value":"\n\n "}, |
279 | 279 | {"type":"CommentSingle","value":"-- Who works for us when she must pay for it?\n"},
|
280 |
| - {"type":"Text","value":" "}, |
| 280 | + {"type":"TextWhitespace","value":" "}, |
281 | 281 | {"type":"Keyword","value":"IF"},
|
282 |
| - {"type":"Text","value":" "}, |
| 282 | + {"type":"TextWhitespace","value":" "}, |
283 | 283 | {"type":"Name","value":"NEW"},
|
284 | 284 | {"type":"LiteralNumberFloat","value":"."},
|
285 | 285 | {"type":"Name","value":"salary"},
|
286 |
| - {"type":"Text","value":" "}, |
| 286 | + {"type":"TextWhitespace","value":" "}, |
287 | 287 | {"type":"Operator","value":"\u003c"},
|
288 |
| - {"type":"Text","value":" "}, |
| 288 | + {"type":"TextWhitespace","value":" "}, |
289 | 289 | {"type":"LiteralNumberFloat","value":"0"},
|
290 |
| - {"type":"Text","value":" "}, |
| 290 | + {"type":"TextWhitespace","value":" "}, |
291 | 291 | {"type":"Keyword","value":"THEN"},
|
292 |
| - {"type":"Text","value":"\n "}, |
| 292 | + {"type":"TextWhitespace","value":"\n "}, |
293 | 293 | {"type":"Keyword","value":"RAISE"},
|
294 |
| - {"type":"Text","value":" "}, |
| 294 | + {"type":"TextWhitespace","value":" "}, |
295 | 295 | {"type":"Keyword","value":"EXCEPTION"},
|
296 |
| - {"type":"Text","value":" "}, |
| 296 | + {"type":"TextWhitespace","value":" "}, |
297 | 297 | {"type":"LiteralStringSingle","value":"'% cannot have a negative salary'"},
|
298 | 298 | {"type":"Punctuation","value":","},
|
299 |
| - {"type":"Text","value":" "}, |
| 299 | + {"type":"TextWhitespace","value":" "}, |
300 | 300 | {"type":"Name","value":"NEW"},
|
301 | 301 | {"type":"LiteralNumberFloat","value":"."},
|
302 | 302 | {"type":"Name","value":"empname"},
|
303 | 303 | {"type":"Punctuation","value":";"},
|
304 |
| - {"type":"Text","value":"\n "}, |
| 304 | + {"type":"TextWhitespace","value":"\n "}, |
305 | 305 | {"type":"Keyword","value":"END"},
|
306 |
| - {"type":"Text","value":" "}, |
| 306 | + {"type":"TextWhitespace","value":" "}, |
307 | 307 | {"type":"Keyword","value":"IF"},
|
308 | 308 | {"type":"Punctuation","value":";"},
|
309 |
| - {"type":"Text","value":"\n\n "}, |
| 309 | + {"type":"TextWhitespace","value":"\n\n "}, |
310 | 310 | {"type":"CommentSingle","value":"-- Remember who changed the payroll when\n"},
|
311 |
| - {"type":"Text","value":" "}, |
| 311 | + {"type":"TextWhitespace","value":" "}, |
312 | 312 | {"type":"Name","value":"NEW"},
|
313 | 313 | {"type":"LiteralNumberFloat","value":"."},
|
314 | 314 | {"type":"Name","value":"last_date"},
|
315 |
| - {"type":"Text","value":" "}, |
| 315 | + {"type":"TextWhitespace","value":" "}, |
316 | 316 | {"type":"Operator","value":":="},
|
317 |
| - {"type":"Text","value":" "}, |
| 317 | + {"type":"TextWhitespace","value":" "}, |
318 | 318 | {"type":"Keyword","value":"current_timestamp"},
|
319 | 319 | {"type":"Punctuation","value":";"},
|
320 |
| - {"type":"Text","value":"\n "}, |
| 320 | + {"type":"TextWhitespace","value":"\n "}, |
321 | 321 | {"type":"Name","value":"NEW"},
|
322 | 322 | {"type":"LiteralNumberFloat","value":"."},
|
323 | 323 | {"type":"Name","value":"last_user"},
|
324 |
| - {"type":"Text","value":" "}, |
| 324 | + {"type":"TextWhitespace","value":" "}, |
325 | 325 | {"type":"Operator","value":":="},
|
326 |
| - {"type":"Text","value":" "}, |
| 326 | + {"type":"TextWhitespace","value":" "}, |
327 | 327 | {"type":"Keyword","value":"current_user"},
|
328 | 328 | {"type":"Punctuation","value":";"},
|
329 |
| - {"type":"Text","value":"\n "}, |
| 329 | + {"type":"TextWhitespace","value":"\n "}, |
330 | 330 | {"type":"Keyword","value":"RETURN"},
|
331 |
| - {"type":"Text","value":" "}, |
| 331 | + {"type":"TextWhitespace","value":" "}, |
332 | 332 | {"type":"Name","value":"NEW"},
|
333 | 333 | {"type":"Punctuation","value":";"},
|
334 |
| - {"type":"Text","value":"\n"}, |
| 334 | + {"type":"TextWhitespace","value":"\n"}, |
335 | 335 | {"type":"Keyword","value":"END"},
|
336 | 336 | {"type":"Punctuation","value":";"},
|
337 |
| - {"type":"Text","value":"\n"}, |
| 337 | + {"type":"TextWhitespace","value":"\n"}, |
338 | 338 | {"type":"LiteralStringHeredoc","value":"$emp_stamp$"},
|
339 | 339 | {"type":"Text","value":" "},
|
340 | 340 | {"type":"Keyword","value":"LANGUAGE"},
|
|
380 | 380 | {"type":"LiteralStringSingle","value":"plpgsql"},
|
381 | 381 | {"type":"Text","value":" "},
|
382 | 382 | {"type":"LiteralStringHeredoc","value":"$$"},
|
383 |
| - {"type":"Text","value":"\n"}, |
| 383 | + {"type":"TextWhitespace","value":"\n"}, |
384 | 384 | {"type":"Keyword","value":"declare"},
|
385 |
| - {"type":"Text","value":" "}, |
| 385 | + {"type":"TextWhitespace","value":" "}, |
386 | 386 | {"type":"Name","value":"r"},
|
387 |
| - {"type":"Text","value":" "}, |
| 387 | + {"type":"TextWhitespace","value":" "}, |
388 | 388 | {"type":"NameBuiltin","value":"record"},
|
389 | 389 | {"type":"Punctuation","value":";"},
|
390 |
| - {"type":"Text","value":"\n"}, |
| 390 | + {"type":"TextWhitespace","value":"\n"}, |
391 | 391 | {"type":"Keyword","value":"begin"},
|
392 |
| - {"type":"Text","value":"\n "}, |
| 392 | + {"type":"TextWhitespace","value":"\n "}, |
393 | 393 | {"type":"Keyword","value":"for"},
|
394 |
| - {"type":"Text","value":" "}, |
| 394 | + {"type":"TextWhitespace","value":" "}, |
395 | 395 | {"type":"Name","value":"r"},
|
396 |
| - {"type":"Text","value":" "}, |
| 396 | + {"type":"TextWhitespace","value":" "}, |
397 | 397 | {"type":"Keyword","value":"in"},
|
398 |
| - {"type":"Text","value":" "}, |
| 398 | + {"type":"TextWhitespace","value":" "}, |
399 | 399 | {"type":"Keyword","value":"select"},
|
400 |
| - {"type":"Text","value":" "}, |
| 400 | + {"type":"TextWhitespace","value":" "}, |
401 | 401 | {"type":"Operator","value":"*"},
|
402 |
| - {"type":"Text","value":" "}, |
| 402 | + {"type":"TextWhitespace","value":" "}, |
403 | 403 | {"type":"Keyword","value":"from"},
|
404 |
| - {"type":"Text","value":" "}, |
| 404 | + {"type":"TextWhitespace","value":" "}, |
405 | 405 | {"type":"Name","value":"books"},
|
406 |
| - {"type":"Text","value":"\n"}, |
| 406 | + {"type":"TextWhitespace","value":"\n"}, |
407 | 407 | {"type":"Keyword","value":"loop"},
|
408 |
| - {"type":"Text","value":"\n "}, |
| 408 | + {"type":"TextWhitespace","value":"\n "}, |
409 | 409 | {"type":"Keyword","value":"execute"},
|
410 |
| - {"type":"Text","value":" "}, |
| 410 | + {"type":"TextWhitespace","value":" "}, |
411 | 411 | {"type":"LiteralStringSingle","value":"'select '''"},
|
412 |
| - {"type":"Text","value":" "}, |
| 412 | + {"type":"TextWhitespace","value":" "}, |
413 | 413 | {"type":"Operator","value":"||"},
|
414 |
| - {"type":"Text","value":" "}, |
| 414 | + {"type":"TextWhitespace","value":" "}, |
415 | 415 | {"type":"Name","value":"r"},
|
416 | 416 | {"type":"LiteralNumberFloat","value":"."},
|
417 | 417 | {"type":"Name","value":"title"},
|
418 |
| - {"type":"Text","value":" "}, |
| 418 | + {"type":"TextWhitespace","value":" "}, |
419 | 419 | {"type":"Operator","value":"||"},
|
420 |
| - {"type":"Text","value":" "}, |
| 420 | + {"type":"TextWhitespace","value":" "}, |
421 | 421 | {"type":"LiteralStringSingle","value":"''''"},
|
422 | 422 | {"type":"Punctuation","value":";"},
|
423 |
| - {"type":"Text","value":"\n"}, |
| 423 | + {"type":"TextWhitespace","value":"\n"}, |
424 | 424 | {"type":"Keyword","value":"end"},
|
425 |
| - {"type":"Text","value":" "}, |
| 425 | + {"type":"TextWhitespace","value":" "}, |
426 | 426 | {"type":"Keyword","value":"loop"},
|
427 | 427 | {"type":"Punctuation","value":";"},
|
428 |
| - {"type":"Text","value":"\n"}, |
| 428 | + {"type":"TextWhitespace","value":"\n"}, |
429 | 429 | {"type":"Keyword","value":"end"},
|
430 |
| - {"type":"Text","value":"\n"}, |
| 430 | + {"type":"TextWhitespace","value":"\n"}, |
431 | 431 | {"type":"LiteralStringHeredoc","value":"$$"},
|
432 | 432 | {"type":"Punctuation","value":";"},
|
433 | 433 | {"type":"Text","value":"\n\n"},
|
|
0 commit comments